Searched refs:ssl_ctx (Results 1 – 8 of 8) sorted by relevance
/openssl/demos/bio/ |
H A D | sconnect.c | 40 SSL_CTX *ssl_ctx = NULL; in main() local 55 ssl_ctx = SSL_CTX_new(TLS_client_method()); in main() 58 SSL_CTX_set_verify(ssl_ctx, SSL_VERIFY_PEER, NULL); in main() 59 if (!SSL_CTX_load_verify_locations(ssl_ctx, CAfile, NULL)) in main() 63 ssl = SSL_new(ssl_ctx); in main() 131 SSL_CTX_free(ssl_ctx); in main()
|
/openssl/demos/sslecho/ |
H A D | main.c | 141 SSL_CTX *ssl_ctx = NULL; in main() local 189 ssl_ctx = create_context(isServer); in main() 197 configure_server_context(ssl_ctx); in main() 219 ssl = SSL_new(ssl_ctx); in main() 277 configure_client_context(ssl_ctx); in main() 294 ssl = SSL_new(ssl_ctx); in main() 359 SSL_CTX_free(ssl_ctx); in main()
|
/openssl/test/ |
H A D | danetest.c | 58 SSL_CTX *ssl_ctx = NULL; in verify_chain() local 64 || !TEST_ptr(ssl_ctx = SSL_get_SSL_CTX(ssl)) in verify_chain() 65 || !TEST_ptr(store = SSL_CTX_get_cert_store(ssl_ctx)) in verify_chain()
|
H A D | sslapitest.c | 646 SSL_CTX *ssl_ctx = NULL; in test_ssl_build_cert_chain() local 651 if (!TEST_ptr(ssl_ctx = SSL_CTX_new_ex(libctx, NULL, TLS_server_method()))) in test_ssl_build_cert_chain() 653 if (!TEST_ptr(ssl = SSL_new(ssl_ctx))) in test_ssl_build_cert_chain() 666 SSL_CTX_free(ssl_ctx); in test_ssl_build_cert_chain()
|
/openssl/apps/ |
H A D | s_server.c | 485 SSL_CTX *ssl_ctx; in get_ocsp_resp_from_responder() local 521 ssl_ctx = SSL_get_SSL_CTX(s); in get_ocsp_resp_from_responder() 522 if (!SSL_CTX_get0_chain_certs(ssl_ctx, &chain)) in get_ocsp_resp_from_responder() 2386 SSL_CTX_sess_number(ssl_ctx)); in print_stats() 2388 SSL_CTX_sess_connect(ssl_ctx)); in print_stats() 2394 SSL_CTX_sess_accept(ssl_ctx)); in print_stats() 2398 SSL_CTX_sess_accept_good(ssl_ctx)); in print_stats() 2401 SSL_CTX_sess_misses(ssl_ctx)); in print_stats() 2403 SSL_CTX_sess_timeouts(ssl_ctx)); in print_stats() 2405 SSL_CTX_sess_cb_hits(ssl_ctx)); in print_stats() [all …]
|
H A D | cmp.c | 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() 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() 1413 if (SSL_CTX_build_cert_chain(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() [all …]
|
/openssl/apps/lib/ |
H A D | apps.c | 2585 SSL_CTX *ssl_ctx = info->ssl_ctx; in app_http_tls_cb() local 2587 if (ssl_ctx == NULL) /* not using TLS */ in app_http_tls_cb() 2592 X509_STORE *ts = SSL_CTX_get_cert_store(ssl_ctx); in app_http_tls_cb() 2605 if ((ssl = SSL_new(ssl_ctx)) == NULL) { in app_http_tls_cb() 2626 SSL_CTX_free(info->ssl_ctx); in APP_HTTP_TLS_INFO_free() 2632 const char *no_proxy, SSL_CTX *ssl_ctx, in app_http_get_asn1() argument 2652 if (use_ssl && ssl_ctx == NULL) { in app_http_get_asn1() 2657 if (!use_ssl && ssl_ctx != NULL) { in app_http_get_asn1() 2668 info.ssl_ctx = ssl_ctx; in app_http_get_asn1() 2692 int use_ssl = ssl_ctx != NULL; in app_http_post_asn1() [all …]
|
/openssl/apps/include/ |
H A D | apps.h | 289 SSL_CTX *ssl_ctx; member 296 const char *no_proxy, SSL_CTX *ssl_ctx,
|
Completed in 58 milliseconds