packages/net/stunnel/patches/101-no-comp.patch
florian 8d4c64b799 [package] update stunnel to 4.27 (#5650)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@17193 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-09 10:44:52 +00:00

28 lines
668 B
Diff

--- a/src/ssl.c
+++ b/src/ssl.c
@@ -62,13 +62,16 @@ void ssl_init(void) { /* init SSL before
}
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";
@@ -97,6 +100,7 @@ static void init_compression(void) {
die(1);
}
s_log(LOG_INFO, "Compression enabled using %s method", name);
+#endif
}
static int init_prng(void) {