openwrt_archive/net/stunnel/patches/101-no-comp.patch
2010-05-13 00:47:17 +00:00

29 lines
775 B
Diff

--- a/src/ssl.c
+++ b/src/ssl.c
@@ -72,14 +72,17 @@ int ssl_configure(void) { /* configure g
s_log(LOG_NOTICE, "FIPS mode %s",
global_options.option.fips ? "enabled" : "disabled");
#endif /* USE_FIPS */
+#ifndef OPENSSL_NO_COMP
if(global_options.compression!=COMP_NONE && !init_compression())
return 0;
+#endif
if(!init_prng())
return 0;
s_log(LOG_DEBUG, "PRNG seeded successfully");
return 1; /* SUCCESS */
}
+#ifndef OPENSSL_NO_COMP
static int init_compression(void) {
int id=0;
COMP_METHOD *cm=NULL;
@@ -111,6 +114,7 @@ static int init_compression(void) {
s_log(LOG_INFO, "Compression enabled using %s method", name);
return 1;
}
+#endif
static int init_prng(void) {
int totbytes=0;