Lines Matching refs:ctx
61 SSL_CTX *ctx;
88 ctx = SSL_CTX_new(TLS_method());
89 if (!TEST_ptr(ctx))
91 if (!TEST_true(SSL_CTX_set_max_proto_version(ctx, 0)))
98 SSL_CTX_free(ctx);
102 if (!TEST_true(SSL_CTX_set_max_proto_version(ctx, TLS1_2_VERSION)))
113 if (!TEST_false(SSL_CTX_set_cipher_list(ctx, "")))
119 SSL_CTX_set_options(ctx, SSL_OP_TLSEXT_PADDING);
121 SSL_CTX_clear_options(ctx, SSL_OP_ENABLE_MIDDLEBOX_COMPAT);
128 if (!TEST_false(SSL_CTX_set_alpn_protos(ctx,
136 } else if (!TEST_true(SSL_CTX_set_cipher_list(ctx,
138 || !TEST_true(SSL_CTX_set_ciphersuites(ctx,
148 con = SSL_new(ctx);
248 SSL_CTX_free(ctx);