Lines Matching defs:ctx

1123 	SSL_CTX* ctx = (SSL_CTX*)ctxt;
1126 if((SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv2) & SSL_OP_NO_SSLv2)
1132 if((SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv3) & SSL_OP_NO_SSLv3)
1139 if((SSL_CTX_set_options(ctx, SSL_OP_NO_TLSv1) & SSL_OP_NO_TLSv1)
1147 if((SSL_CTX_set_options(ctx, SSL_OP_NO_TLSv1_1) & SSL_OP_NO_TLSv1_1)
1155 if((SSL_CTX_set_options(ctx, SSL_OP_NO_RENEGOTIATION) &
1165 if(!SSL_CTX_set_cipher_list(ctx, "TLS13-CHACHA20-POLY1305-SHA256:TLS13-AES-256-GCM-SHA384:TLS13-AES-128-GCM-SHA256:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256"))
1173 if((SSL_CTX_set_options(ctx, SSL_OP_IGNORE_UNEXPECTED_EOF) &
1180 if((SSL_CTX_set_options(ctx, SSL_OP_CIPHER_SERVER_PREFERENCE) &
1188 SSL_CTX_set_security_level(ctx, 0);
1191 SSL_CTX_set_alpn_select_cb(ctx, alpn_select_cb, NULL);
1203 SSL_CTX* ctx = (SSL_CTX*)ctxt;
1204 (void)ctx;
1206 if(!SSL_CTX_set_ecdh_auto(ctx,1)) {
1215 if (1 != SSL_CTX_set_tmp_ecdh (ctx, ecdh)) {
1230 SSL_CTX* ctx = SSL_CTX_new(SSLv23_server_method());
1231 if(!ctx) {
1237 SSL_CTX_free(ctx);
1242 SSL_CTX_free(ctx);
1245 if(!listen_sslctx_setup(ctx)) {
1246 SSL_CTX_free(ctx);
1249 if(!SSL_CTX_use_certificate_chain_file(ctx, pem)) {
1252 SSL_CTX_free(ctx);
1255 if(!SSL_CTX_use_PrivateKey_file(ctx, key, SSL_FILETYPE_PEM)) {
1258 SSL_CTX_free(ctx);
1261 if(!SSL_CTX_check_private_key(ctx)) {
1264 SSL_CTX_free(ctx);
1267 listen_sslctx_setup_2(ctx);
1269 if(!SSL_CTX_load_verify_locations(ctx, verifypem, NULL)) {
1271 SSL_CTX_free(ctx);
1274 SSL_CTX_set_client_CA_list(ctx, SSL_load_client_CA_file(
1276 SSL_CTX_set_verify(ctx, SSL_VERIFY_PEER|SSL_VERIFY_FAIL_IF_NO_PEER_CERT, NULL);
1278 return ctx;
1380 SSL_CTX* ctx = SSL_CTX_new(SSLv23_client_method());
1381 if(!ctx) {
1386 if((SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv2) & SSL_OP_NO_SSLv2)
1389 SSL_CTX_free(ctx);
1393 if((SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv3) & SSL_OP_NO_SSLv3)
1396 SSL_CTX_free(ctx);
1401 if((SSL_CTX_set_options(ctx, SSL_OP_NO_RENEGOTIATION) &
1404 SSL_CTX_free(ctx);
1412 if((SSL_CTX_set_options(ctx, SSL_OP_IGNORE_UNEXPECTED_EOF) &
1415 SSL_CTX_free(ctx);
1420 if(!SSL_CTX_use_certificate_chain_file(ctx, pem)) {
1423 SSL_CTX_free(ctx);
1426 if(!SSL_CTX_use_PrivateKey_file(ctx, key, SSL_FILETYPE_PEM)) {
1429 SSL_CTX_free(ctx);
1432 if(!SSL_CTX_check_private_key(ctx)) {
1435 SSL_CTX_free(ctx);
1441 if(!SSL_CTX_load_verify_locations(ctx, verifypem, NULL)) {
1443 SSL_CTX_free(ctx);
1449 if(!add_WIN_cacerts_to_openssl_store(ctx)) {
1451 SSL_CTX_free(ctx);
1457 if(!SSL_CTX_set_default_verify_paths(ctx)) {
1459 SSL_CTX_free(ctx);
1464 SSL_CTX_set_verify(ctx, SSL_VERIFY_PEER, NULL);
1466 return ctx;