Merge branch 'bug/openssl'
This commit is contained in:
8
url.c
8
url.c
@@ -338,7 +338,15 @@ openSSLHandle(int sock, char *hostname, char **p_cert)
|
|||||||
if (strchr(ssl_forbid_method, 'T'))
|
if (strchr(ssl_forbid_method, 'T'))
|
||||||
option |= SSL_OP_NO_TLSv1;
|
option |= SSL_OP_NO_TLSv1;
|
||||||
}
|
}
|
||||||
|
#ifdef SSL_OP_NO_COMPRESSION
|
||||||
|
option |= SSL_OP_NO_COMPRESSION;
|
||||||
|
#endif
|
||||||
SSL_CTX_set_options(ssl_ctx, option);
|
SSL_CTX_set_options(ssl_ctx, option);
|
||||||
|
|
||||||
|
#ifdef SSL_MODE_RELEASE_BUFFERS
|
||||||
|
SSL_CTX_set_mode (ssl_ctx, SSL_MODE_RELEASE_BUFFERS);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef USE_SSL_VERIFY
|
#ifdef USE_SSL_VERIFY
|
||||||
/* derived from openssl-0.9.5/apps/s_{client,cb}.c */
|
/* derived from openssl-0.9.5/apps/s_{client,cb}.c */
|
||||||
#if 1 /* use SSL_get_verify_result() to verify cert */
|
#if 1 /* use SSL_get_verify_result() to verify cert */
|
||||||
|
|||||||
Reference in New Issue
Block a user