Link Here
|
1 |
--- src/core/network-openssl.c.orig 2009-08-17 09:27:52.000000000 +0800 |
|
|
2 |
+++ src/core/network-openssl.c 2009-08-17 09:28:14.000000000 +0800 |
3 |
@@ -230,7 +230,7 @@ |
4 |
SSL_library_init(); |
5 |
SSL_load_error_strings(); |
6 |
|
7 |
- ssl_ctx = SSL_CTX_new(SSLv23_client_method()); |
8 |
+ ssl_ctx = SSL_CTX_new(SSLv3_client_method()); |
9 |
if(!ssl_ctx) |
10 |
{ |
11 |
g_error("Initialization of the SSL library failed"); |
12 |
@@ -259,7 +259,7 @@ |
13 |
|
14 |
if (mycert && *mycert) { |
15 |
char *scert = NULL, *spkey = NULL; |
16 |
- if ((ctx = SSL_CTX_new(SSLv23_client_method())) == NULL) { |
17 |
+ if ((ctx = SSL_CTX_new(SSLv3_client_method())) == NULL) { |
18 |
g_error("Could not allocate memory for SSL context"); |
19 |
return NULL; |
20 |
} |
21 |
@@ -279,7 +279,7 @@ |
22 |
if ((cafile && *cafile) || (capath && *capath)) { |
23 |
char *scafile = NULL; |
24 |
char *scapath = NULL; |
25 |
- if (! ctx && (ctx = SSL_CTX_new(SSLv23_client_method())) == NULL) { |
26 |
+ if (! ctx && (ctx = SSL_CTX_new(SSLv3_client_method())) == NULL) { |
27 |
g_error("Could not allocate memory for SSL context"); |
28 |
return NULL; |
29 |
} |