SSL_CTX_set_max_proto_version
if (SSL_CTX_set_max_proto_version(ctx, max_version) == 0)
|| !SSL_CTX_set_max_proto_version(ctx, version)) {
&& SSL_CTX_set_max_proto_version(ctx, max_version) == 0)
&& SSL_CTX_set_max_proto_version(ctx, max_version) == 0)
if (SSL_CTX_set_max_proto_version(ctx, max_version) == 0)
|| !TEST_true(SSL_CTX_set_max_proto_version(ctx, DTLS1_BAD_VER))
if (!TEST_true(SSL_CTX_set_max_proto_version(ctx, 0)))
if (!TEST_true(SSL_CTX_set_max_proto_version(ctx, TLS1_2_VERSION)))
&& !TEST_true(SSL_CTX_set_max_proto_version(serverctx,
&& !TEST_true(SSL_CTX_set_max_proto_version(clientctx,
SSL_CTX_set_max_proto_version(sctx, TLS1_2_VERSION);
&& !TEST_true(SSL_CTX_set_max_proto_version(ctx, maxversion)))
&& !TEST_true(SSL_CTX_set_max_proto_version(ctx, maxversion)))
if (!TEST_int_eq(SSL_CTX_set_max_proto_version(ctx, t.max_version), t.max_ok))
if (SSL_CTX_set_max_proto_version(c_ctx, max_version) == 0)
if (SSL_CTX_set_max_proto_version(s_ctx, max_version) == 0)
|| !TEST_true(SSL_CTX_set_max_proto_version(server_ctx, 0)))
if (!TEST_true(SSL_CTX_set_max_proto_version(client_ctx, 0)))
if (!TEST_true(SSL_CTX_set_max_proto_version(resume_server_ctx, 0))
if (!TEST_true(SSL_CTX_set_max_proto_version(resume_client_ctx, 0)))
if (!TEST_true(SSL_CTX_set_max_proto_version(server_ctx, maxversion))
if (!TEST_true(SSL_CTX_set_max_proto_version(server2_ctx,
if (!TEST_true(SSL_CTX_set_max_proto_version(client_ctx, maxversion)))
if (!TEST_true(SSL_CTX_set_max_proto_version(resume_server_ctx,
if (!TEST_true(SSL_CTX_set_max_proto_version(resume_client_ctx,
SSL_CTX_set_max_proto_version(cctx, maxprot);
SSL_CTX_set_max_proto_version(sctx, TLS1_1_VERSION);
SSL_CTX_set_max_proto_version(sctx, maxprot);
SSL_CTX_set_max_proto_version(cctx, TLS1_2_VERSION);
SSL_CTX_set_max_proto_version(cctx, TLS1_2_VERSION);
SSL_CTX_set_max_proto_version(cctx, protocols[tst]);
&& !TEST_true(SSL_CTX_set_max_proto_version(cctx,
|| !TEST_true(SSL_CTX_set_max_proto_version(sctx, TLS1_3_VERSION))
|| !TEST_true(SSL_CTX_set_max_proto_version(cctx, TLS1_3_VERSION)))
|| !TEST_true(SSL_CTX_set_max_proto_version(sctx, TLS1_2_VERSION))
|| !TEST_true(SSL_CTX_set_max_proto_version(cctx, TLS1_2_VERSION))
SSL_CTX_set_max_proto_version(cctx, TLS1_2_VERSION);
if (!TEST_true(SSL_CTX_set_max_proto_version(cctx, TLS1_2_VERSION)))
ret = SSL_CTX_set_max_proto_version(ctx, rpctls_tlsvers);
ret = SSL_CTX_set_max_proto_version(ctx, TLS1_3_VERSION);