Lines Matching refs:ssl_ctx
1349 SSL_CTX *ssl_ctx; in setup_ssl_ctx() local
1352 ssl_ctx = SSL_CTX_new(TLS_client_method()); in setup_ssl_ctx()
1353 if (ssl_ctx == NULL) in setup_ssl_ctx()
1360 SSL_CTX_set_cert_store(ssl_ctx, trust_store); in setup_ssl_ctx()
1361 SSL_CTX_set_verify(ssl_ctx, SSL_VERIFY_PEER, NULL); in setup_ssl_ctx()
1377 ok = SSL_CTX_use_certificate(ssl_ctx, cert) > 0; in setup_ssl_ctx()
1384 if (!ok || !SSL_CTX_set0_chain(ssl_ctx, certs)) { in setup_ssl_ctx()
1392 if (!SSL_CTX_add1_chain_cert(ssl_ctx, cert)) { in setup_ssl_ctx()
1413 if (SSL_CTX_build_cert_chain(ssl_ctx, in setup_ssl_ctx()
1438 res = SSL_CTX_add_extra_chain_cert(ssl_ctx, cert); in setup_ssl_ctx()
1459 if (!X509_check_private_key(SSL_CTX_get0_certificate(ssl_ctx), in setup_ssl_ctx()
1467 if (SSL_CTX_use_PrivateKey(ssl_ctx, pkey) <= 0) { in setup_ssl_ctx()
1487 return ssl_ctx; in setup_ssl_ctx()
1489 SSL_CTX_free(ssl_ctx); in setup_ssl_ctx()
2249 info->ssl_ctx = setup_ssl_ctx(ctx, host, engine); in setup_client_ctx()
2258 if (info->ssl_ctx == NULL) in setup_client_ctx()