浏览代码

Implement specific support for TLSv1.1

ahc_fix_select^2
Muzaffar Auhammud 6 年前
父节点
当前提交
8ff23d5577
共有 1 个文件被更改,包括 12 次插入0 次删除
  1. +12
    -0
      src/httperf.c

+ 12
- 0
src/httperf.c 查看文件

@@ -1064,6 +1064,18 @@ main(int argc, char **argv)
SSL_CTX_set_options(ssl_ctx, SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3 | SSL_OP_NO_TLSv1_1 | SSL_OP_NO_TLSv1_2); break;
#endif

/* 5/TLSv1.1 */
case 5:
#if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
ssl_ctx = SSL_CTX_new (TLS_client_method ());
SSL_CTX_set_min_proto_version(ssl_ctx, TLS1_1_VERSION);
SSL_CTX_set_max_proto_version(ssl_ctx, TLS1_1_VERSION);
break;
#else
ssl_ctx = SSL_CTX_new (TLSv1_client_method ()); break;
SSL_CTX_set_options(ssl_ctx, SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3 | SSL_OP_NO_TLSv1 | SSL_OP_NO_TLSv1_2); break;
#endif

}
if (!ssl_ctx) {


正在加载...
取消
保存