|
Line 0
Link Here
|
|
|
1 |
--- ck_ssl.c.orig 2011-07-06 15:03:32.000000000 +0200 |
| 2 |
+++ ck_ssl.c 2015-10-03 14:42:36.360598285 +0200 |
| 3 |
@@ -1054,11 +1054,15 @@ ssl_display_comp(SSL * ssl) |
| 4 |
if (ssl == NULL) |
| 5 |
return; |
| 6 |
|
| 7 |
+#ifndef OPENSSL_NO_COMP |
| 8 |
if (ssl->expand == NULL || ssl->expand->meth == NULL) |
| 9 |
+#endif |
| 10 |
printf("Compression: None\r\n"); |
| 11 |
+#ifndef OPENSSL_NO_COMP |
| 12 |
else { |
| 13 |
printf("Compression: %s\r\n",ssl->expand->meth->name); |
| 14 |
} |
| 15 |
+#endif |
| 16 |
} |
| 17 |
|
| 18 |
int |
| 19 |
@@ -1483,9 +1487,13 @@ the build.\r\n\r\n"); |
| 20 |
} |
| 21 |
debug(F110,"ssl_rnd_file",ssl_rnd_file,0); |
| 22 |
|
| 23 |
+#ifndef OPENSSL_NO_EGD |
| 24 |
rc1 = RAND_egd(ssl_rnd_file); |
| 25 |
debug(F111,"ssl_once_init","RAND_egd()",rc1); |
| 26 |
- if ( rc1 <= 0 ) { |
| 27 |
+ if ( rc1 <= 0 ) |
| 28 |
+#endif |
| 29 |
+ { |
| 30 |
+ |
| 31 |
rc2 = RAND_load_file(ssl_rnd_file, -1); |
| 32 |
debug(F111,"ssl_once_init","RAND_load_file()",rc1); |
| 33 |
} |
| 34 |
@@ -1579,10 +1587,12 @@ ssl_tn_init(mode) int mode; |
| 35 |
/* This can fail because we do not have RSA available */ |
| 36 |
if ( !ssl_ctx ) { |
| 37 |
debug(F110,"ssl_tn_init","SSLv23_client_method failed",0); |
| 38 |
+#ifndef OPENSSL_NO_SSL3 |
| 39 |
ssl_ctx=(SSL_CTX *)SSL_CTX_new(SSLv3_client_method()); |
| 40 |
} |
| 41 |
if ( !ssl_ctx ) { |
| 42 |
debug(F110,"ssl_tn_init","SSLv3_client_method failed",0); |
| 43 |
+#endif |
| 44 |
last_ssl_mode = -1; |
| 45 |
return(0); |
| 46 |
} |
| 47 |
@@ -1593,8 +1603,10 @@ ssl_tn_init(mode) int mode; |
| 48 |
/* This can fail because we do not have RSA available */ |
| 49 |
if ( !tls_ctx ) { |
| 50 |
debug(F110,"ssl_tn_init","SSLv23_client_method failed",0); |
| 51 |
+#ifndef OPENSSL_NO_SSL3 |
| 52 |
tls_ctx=(SSL_CTX *)SSL_CTX_new(SSLv3_client_method()); |
| 53 |
} |
| 54 |
+#endif /* OPENSSL_NO_SSL3 */ |
| 55 |
#endif /* COMMENT */ |
| 56 |
if ( !tls_ctx ) { |
| 57 |
debug(F110,"ssl_tn_init","TLSv1_client_method failed",0); |
| 58 |
@@ -1611,10 +1623,12 @@ ssl_tn_init(mode) int mode; |
| 59 |
/* This can fail because we do not have RSA available */ |
| 60 |
if ( !ssl_ctx ) { |
| 61 |
debug(F110,"ssl_tn_init","SSLv23_server_method failed",0); |
| 62 |
+#ifndef OPENSSL_NO_SSL3 |
| 63 |
ssl_ctx=(SSL_CTX *)SSL_CTX_new(SSLv3_server_method()); |
| 64 |
} |
| 65 |
if ( !ssl_ctx ) { |
| 66 |
debug(F110,"ssl_tn_init","SSLv3_server_method failed",0); |
| 67 |
+#endif |
| 68 |
last_ssl_mode = -1; |
| 69 |
return(0); |
| 70 |
} |
| 71 |
@@ -2161,7 +2175,9 @@ ssl_http_init(hostname) char * hostname; |
| 72 |
/* This can fail because we do not have RSA available */ |
| 73 |
if ( !tls_http_ctx ) { |
| 74 |
debug(F110,"ssl_http_init","SSLv23_client_method failed",0); |
| 75 |
+#ifndef OPENSSL_NO_SSL3 |
| 76 |
tls_http_ctx=(SSL_CTX *)SSL_CTX_new(SSLv3_client_method()); |
| 77 |
+#endif |
| 78 |
} |
| 79 |
#endif /* COMMENT */ |
| 80 |
if ( !tls_http_ctx ) { |