Searched refs:ssl_ctx (Results 1 – 8 of 8) sorted by relevance
/openssl/demos/bio/ |
H A D | sconnect.c | 36 SSL_CTX *ssl_ctx = NULL; in main() local 51 ssl_ctx = SSL_CTX_new(TLS_client_method()); in main() 54 SSL_CTX_set_verify(ssl_ctx, SSL_VERIFY_PEER, NULL); in main() 55 SSL_CTX_load_verify_locations(ssl_ctx, CAfile, NULL); in main() 58 ssl = SSL_new(ssl_ctx); in main() 126 SSL_CTX_free(ssl_ctx); in main()
|
/openssl/demos/sslecho/ |
H A D | main.c | 134 SSL_CTX *ssl_ctx = NULL; in main() local 174 ssl_ctx = create_context(isServer); in main() 182 configure_server_context(ssl_ctx); in main() 204 ssl = SSL_new(ssl_ctx); in main() 257 configure_client_context(ssl_ctx); in main() 274 ssl = SSL_new(ssl_ctx); in main() 331 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 | cmp.c | 1246 SSL_CTX *ssl_ctx; in setup_ssl_ctx() local 1249 ssl_ctx = SSL_CTX_new(TLS_client_method()); in setup_ssl_ctx() 1250 if (ssl_ctx == NULL) in setup_ssl_ctx() 1257 SSL_CTX_set_cert_store(ssl_ctx, trust_store); in setup_ssl_ctx() 1274 ok = SSL_CTX_use_certificate(ssl_ctx, cert) > 0; in setup_ssl_ctx() 1281 if (!ok || !SSL_CTX_set0_chain(ssl_ctx, certs)) { in setup_ssl_ctx() 1308 if (SSL_CTX_build_cert_chain(ssl_ctx, in setup_ssl_ctx() 1362 if (SSL_CTX_use_PrivateKey(ssl_ctx, pkey) <= 0) { in setup_ssl_ctx() 1382 return ssl_ctx; in setup_ssl_ctx() 1384 SSL_CTX_free(ssl_ctx); in setup_ssl_ctx() [all …]
|
H A D | s_server.c | 2304 static void print_stats(BIO *bio, SSL_CTX *ssl_ctx) in print_stats() argument 2307 SSL_CTX_sess_number(ssl_ctx)); in print_stats() 2309 SSL_CTX_sess_connect(ssl_ctx)); in print_stats() 2313 SSL_CTX_sess_connect_good(ssl_ctx)); in print_stats() 2315 SSL_CTX_sess_accept(ssl_ctx)); in print_stats() 2319 SSL_CTX_sess_accept_good(ssl_ctx)); in print_stats() 2322 SSL_CTX_sess_misses(ssl_ctx)); in print_stats() 2324 SSL_CTX_sess_timeouts(ssl_ctx)); in print_stats() 2326 SSL_CTX_sess_cb_hits(ssl_ctx)); in print_stats() 2328 SSL_CTX_sess_cache_full(ssl_ctx), in print_stats() [all …]
|
/openssl/apps/lib/ |
H A D | apps.c | 2479 SSL_CTX *ssl_ctx = info->ssl_ctx; in app_http_tls_cb() local 2481 if (ssl_ctx == NULL) /* not using TLS */ in app_http_tls_cb() 2495 if ((ssl = SSL_new(ssl_ctx)) == NULL) { in app_http_tls_cb() 2516 SSL_CTX_free(info->ssl_ctx); in APP_HTTP_TLS_INFO_free() 2522 const char *no_proxy, SSL_CTX *ssl_ctx, in app_http_get_asn1() argument 2542 if (use_ssl && ssl_ctx == NULL) { in app_http_get_asn1() 2547 if (!use_ssl && ssl_ctx != NULL) { in app_http_get_asn1() 2558 info.ssl_ctx = ssl_ctx; in app_http_get_asn1() 2575 const char *no_proxy, SSL_CTX *ssl_ctx, in app_http_post_asn1() argument 2582 int use_ssl = ssl_ctx != NULL; in app_http_post_asn1() [all …]
|
/openssl/apps/include/ |
H A D | apps.h | 287 SSL_CTX *ssl_ctx; member 294 const char *no_proxy, SSL_CTX *ssl_ctx,
|
Completed in 69 milliseconds