stunnel for kamikaze, contributed by coova, cleaned up by me. note: this requires V=99 so that you can specify cert params.. still ick, better option? put the variables as menu options? sorta ick too.

git-svn-id: svn://svn.openwrt.org/openwrt/packages@5596 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
pavlov
2006-11-21 00:33:42 +00:00
parent 72247afe68
commit 6192f6e742
6 changed files with 286 additions and 0 deletions

View File

@ -0,0 +1,28 @@
diff -baurN stunnel-4.16.orig/src/ssl.c stunnel-4.16/src/ssl.c
--- stunnel-4.16.orig/src/ssl.c 2006-11-03 16:49:02.000000000 +0100
+++ stunnel-4.16/src/ssl.c 2006-11-03 16:50:16.000000000 +0100
@@ -55,13 +55,16 @@
}
void ssl_configure(void) { /* configure global SSL settings */
+#ifndef OPENSSL_NO_COMP
if(options.compression!=COMP_NONE)
init_compression();
+#endif
if(!init_prng())
s_log(LOG_DEBUG, "PRNG seeded successfully");
}
static void init_compression(void) {
+#ifndef OPENSSL_NO_COMP
int id=0;
COMP_METHOD *cm=NULL;
char *name="unknown";
@@ -90,6 +93,7 @@
exit(1);
}
s_log(LOG_INFO, "Compression enabled using %s method", name);
+#endif
}
static int init_prng(void) {