|
Lines 107-113
Link Here
|
| 107 |
int rand_bytes_read; |
107 |
int rand_bytes_read; |
| 108 |
|
108 |
|
| 109 |
if(!bNotFirstTime) { |
109 |
if(!bNotFirstTime) { |
| 110 |
SSLeay_add_all_algorithms(); |
110 |
SSLeay_add_ssl_algorithms(); |
| 111 |
SSL_load_error_strings(); |
111 |
SSL_load_error_strings(); |
| 112 |
ERR_load_crypto_strings(); |
112 |
ERR_load_crypto_strings(); |
| 113 |
bNotFirstTime = 1; |
113 |
bNotFirstTime = 1; |
|
Lines 130-135
Link Here
|
| 130 |
/* v2 is the default */ |
130 |
/* v2 is the default */ |
| 131 |
ctx = SSL_CTX_new(SSLv2_client_method()); |
131 |
ctx = SSL_CTX_new(SSLv2_client_method()); |
| 132 |
} |
132 |
} |
|
|
133 |
|
| 134 |
if(!ctx) { |
| 135 |
ERR_error_string_n(ERR_get_error(),buf,sizeof(buf)/sizeof(*buf)); |
| 136 |
croak(buf); |
| 137 |
} |
| 138 |
|
| 133 |
SSL_CTX_set_options(ctx,SSL_OP_ALL|0); |
139 |
SSL_CTX_set_options(ctx,SSL_OP_ALL|0); |
| 134 |
|
140 |
|
| 135 |
SSL_CTX_set_default_verify_paths(ctx); |
141 |
SSL_CTX_set_default_verify_paths(ctx); |