瀏覽代碼

Use the new API for SSLv3 protocol selection in OpenSSL >= 1.1.0

ahc_fix_select^2
Muzaffar Auhammud 6 年之前
父節點
當前提交
f2cd35e9be
共有 1 個檔案被更改,包括 3 行新增2 行删除
  1. +3
    -2
      src/httperf.c

+ 3
- 2
src/httperf.c 查看文件

@@ -1045,8 +1045,9 @@ main(int argc, char **argv)
case 3:
#if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
ssl_ctx = SSL_CTX_new (TLS_client_method ());
SSL_CTX_set_options(ssl_ctx, SSL_OP_NO_SSLv2 | SSL_OP_NO_TLSv1 | SSL_OP_NO_TLSv1_1 | SSL_OP_NO_TLSv1_2);
break;
SSL_CTX_set_min_proto_version(ssl_ctx, SSL3_VERSION);
SSL_CTX_set_max_proto_version(ssl_ctx, SSL3_VERSION);
break;
#else
ssl_ctx = SSL_CTX_new (SSLv3_client_method ()); break;
#endif


Loading…
取消
儲存