2008-07-06 11:09:56 +00:00
|
|
|
--- a/src/ssl.c
|
|
|
|
+++ b/src/ssl.c
|
2010-05-13 00:47:17 +00:00
|
|
|
@@ -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;
|
2006-11-21 00:33:42 +00:00
|
|
|
+#endif
|
|
|
|
if(!init_prng())
|
2010-05-13 00:47:17 +00:00
|
|
|
return 0;
|
|
|
|
s_log(LOG_DEBUG, "PRNG seeded successfully");
|
|
|
|
return 1; /* SUCCESS */
|
2006-11-21 00:33:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
+#ifndef OPENSSL_NO_COMP
|
2010-05-13 00:47:17 +00:00
|
|
|
static int init_compression(void) {
|
2006-11-21 00:33:42 +00:00
|
|
|
int id=0;
|
|
|
|
COMP_METHOD *cm=NULL;
|
2010-05-13 00:47:17 +00:00
|
|
|
@@ -111,6 +114,7 @@ static int init_compression(void) {
|
2006-11-21 00:33:42 +00:00
|
|
|
s_log(LOG_INFO, "Compression enabled using %s method", name);
|
2010-05-13 00:47:17 +00:00
|
|
|
return 1;
|
2006-11-21 00:33:42 +00:00
|
|
|
}
|
2010-05-13 00:47:17 +00:00
|
|
|
+#endif
|
2006-11-21 00:33:42 +00:00
|
|
|
|
|
|
|
static int init_prng(void) {
|
2010-05-13 00:47:17 +00:00
|
|
|
int totbytes=0;
|