Lines 251-257
SslInitializeCTX(SSL_PROPERTIES *psPrope
Link Here
|
251 |
* |
251 |
* |
252 |
********************************************************************* |
252 |
********************************************************************* |
253 |
*/ |
253 |
*/ |
|
|
254 |
#ifndef OPENSSL_NO_SSL3 |
254 |
psProperties->psslCTX = SSL_CTX_new(SSLv3_client_method()); |
255 |
psProperties->psslCTX = SSL_CTX_new(SSLv3_client_method()); |
|
|
256 |
#else |
257 |
psProperties->psslCTX = SSL_CTX_new(SSLv23_client_method()); |
258 |
SSL_CTX_set_options(psProperties->psslCTX, SSL_OP_NO_SSLv2 | SSL_OP_NO_TLSv1 |
259 |
#ifdef SSL_OP_NO_TLSv1_2 |
260 |
| SSL_OP_NO_TLSv1_1 | SSL_OP_NO_TLSv1_2 |
261 |
#endif |
262 |
); |
263 |
#endif |
255 |
if (psProperties->psslCTX == NULL) |
264 |
if (psProperties->psslCTX == NULL) |
256 |
{ |
265 |
{ |
257 |
ERR_error_string(ERR_get_error(), acLocalError); |
266 |
ERR_error_string(ERR_get_error(), acLocalError); |