/external/curl/lib/vtls/ |
D | sectransp.c | 134 SSLContextRef ssl_ctx; member 1328 (void)SSLSetProtocolVersionMin(BACKEND->ssl_ctx, darwin_ver_min); in set_ssl_version_min_max() 1329 (void)SSLSetProtocolVersionMax(BACKEND->ssl_ctx, darwin_ver_max); in set_ssl_version_min_max() 1335 (void)SSLSetProtocolVersionEnabled(BACKEND->ssl_ctx, in set_ssl_version_min_max() 1341 (void)SSLSetProtocolVersionEnabled(BACKEND->ssl_ctx, in set_ssl_version_min_max() 1346 (void)SSLSetProtocolVersionEnabled(BACKEND->ssl_ctx, in set_ssl_version_min_max() 1351 (void)SSLSetProtocolVersionEnabled(BACKEND->ssl_ctx, in set_ssl_version_min_max() 1397 if(BACKEND->ssl_ctx) 1398 CFRelease(BACKEND->ssl_ctx); 1399 BACKEND->ssl_ctx = SSLCreateContext(NULL, kSSLClientSide, kSSLStreamType); [all …]
|
/external/boringssl/src/ssl/test/ |
D | test_config.cc | 1153 bssl::UniquePtr<SSL_CTX> ssl_ctx( in SetupCtx() local 1155 if (!ssl_ctx) { in SetupCtx() 1160 SSL_CTX_set0_buffer_pool(ssl_ctx.get(), g_pool); in SetupCtx() 1164 !SSL_CTX_set_max_proto_version(ssl_ctx.get(), TLS1_3_VERSION)) { in SetupCtx() 1171 SSL_CTX_set_options(ssl_ctx.get(), SSL_OP_CIPHER_SERVER_PREFERENCE); in SetupCtx() 1173 if (!SSL_CTX_set_strict_cipher_list(ssl_ctx.get(), cipher_list.c_str())) { in SetupCtx() 1181 ssl_ctx.get(), SSL_SESS_CACHE_BOTH | SSL_SESS_CACHE_NO_INTERNAL); in SetupCtx() 1182 SSL_CTX_sess_set_get_cb(ssl_ctx.get(), GetSessionCallback); in SetupCtx() 1184 SSL_CTX_set_session_cache_mode(ssl_ctx.get(), SSL_SESS_CACHE_BOTH); in SetupCtx() 1187 SSL_CTX_set_select_certificate_cb(ssl_ctx.get(), SelectCertificateCallback); in SetupCtx() [all …]
|
D | bssl_shim.cc | 638 SSL_CTX *ssl_ctx, const TestConfig *config, in DoConnection() argument 642 ssl_ctx, session, is_resume, std::unique_ptr<TestState>(new TestState)); in DoConnection() 1127 bssl::UniquePtr<SSL_CTX> ssl_ctx; in main() local 1133 ssl_ctx = config->SetupCtx(ssl_ctx.get()); in main() 1134 if (!ssl_ctx) { in main() 1150 bool ok = DoConnection(&session, ssl_ctx.get(), config, &retry_config, in main()
|
/external/wpa_supplicant_8/src/eap_server/ |
D | eap_server_tls_common.c | 52 if (sm->ssl_ctx == NULL) { in eap_server_tls_ssl_init() 60 data->conn = tls_connection_init(sm->ssl_ctx); in eap_server_tls_ssl_init() 78 if (tls_connection_set_verify(sm->ssl_ctx, data->conn, verify_peer, in eap_server_tls_ssl_init() 83 tls_connection_deinit(sm->ssl_ctx, data->conn); in eap_server_tls_ssl_init() 102 tls_connection_deinit(sm->ssl_ctx, data->conn); in eap_server_tls_ssl_deinit() 119 if (tls_connection_export_key(sm->ssl_ctx, data->conn, label, in eap_server_tls_derive_key() 172 if (tls_connection_get_random(sm->ssl_ctx, data->conn, &keys)) in eap_server_tls_derive_session_id() 342 data->tls_out = tls_connection_server_handshake(sm->ssl_ctx, in eap_server_tls_phase1() 349 if (tls_connection_get_failed(sm->ssl_ctx, data->conn)) { in eap_server_tls_phase1() 356 if (tls_get_version(sm->ssl_ctx, data->conn, buf, sizeof(buf)) == 0) { in eap_server_tls_phase1() [all …]
|
D | eap_server_tls.c | 190 if (tls_connection_established(sm->ssl_ctx, data->ssl.conn)) in eap_tls_buildReq() 283 if (!tls_connection_established(sm->ssl_ctx, data->ssl.conn) || in eap_tls_process() 284 !tls_connection_resumed(sm->ssl_ctx, data->ssl.conn)) in eap_tls_process()
|
D | eap_server_fast.c | 281 sks = eap_fast_derive_key(sm->ssl_ctx, data->ssl.conn, in eap_fast_derive_key_auth() 307 eap_fast_derive_key(sm->ssl_ctx, data->ssl.conn, in eap_fast_derive_key_provisioning() 443 if (tls_connection_set_cipher_list(sm->ssl_ctx, data->ssl.conn, in eap_fast_init() 451 if (tls_connection_set_session_ticket_cb(sm->ssl_ctx, data->ssl.conn, in eap_fast_init() 555 if (tls_get_cipher(sm->ssl_ctx, data->ssl.conn, cipher, sizeof(cipher)) in eap_fast_phase1_done() 875 if (tls_connection_established(sm->ssl_ctx, data->ssl.conn)) { in eap_fast_buildReq() 1400 in_decrypted = tls_connection_decrypt(sm->ssl_ctx, data->ssl.conn, in eap_fast_process_phase2() 1460 if (!tls_connection_established(sm->ssl_ctx, data->ssl.conn) || in eap_fast_process_phase1()
|
D | eap_server_peap.c | 109 tls_connection_resumed(sm->ssl_ctx, data->ssl.conn)) in eap_peap_valid_session() 339 if (tls_connection_resumed(sm->ssl_ctx, data->ssl.conn)) { in eap_peap_derive_cmk() 524 if (tls_connection_established(sm->ssl_ctx, data->ssl.conn)) { in eap_peap_buildReq() 1080 in_decrypted = tls_connection_decrypt(sm->ssl_ctx, data->ssl.conn, in eap_peap_process_phase2() 1240 !tls_connection_established(sm->ssl_ctx, data->ssl.conn) || in eap_peap_process() 1241 !tls_connection_resumed(sm->ssl_ctx, data->ssl.conn)) in eap_peap_process()
|
/external/wpa_supplicant_8/src/crypto/ |
D | tls_wolfssl.c | 194 WOLFSSL_CTX *ssl_ctx; in tls_init() local 217 ssl_ctx = wolfSSL_CTX_new(wolfSSLv23_client_method()); in tls_init() 218 if (!ssl_ctx) { in tls_init() 227 wolfSSL_SetIORecv(ssl_ctx, wolfssl_receive_cb); in tls_init() 228 wolfSSL_SetIOSend(ssl_ctx, wolfssl_send_cb); in tls_init() 229 wolfSSL_CTX_set_ex_data(ssl_ctx, 0, context); in tls_init() 232 wolfSSL_CTX_set_quiet_shutdown(ssl_ctx, 1); in tls_init() 233 wolfSSL_CTX_set_session_cache_mode(ssl_ctx, in tls_init() 235 wolfSSL_CTX_set_timeout(ssl_ctx, conf->tls_session_lifetime); in tls_init() 236 wolfSSL_CTX_sess_set_remove_cb(ssl_ctx, remove_session_cb); in tls_init() [all …]
|
D | tls_openssl.c | 242 SSL_CTX *ssl_ctx; member 661 static int tls_cryptoapi_ca_cert(SSL_CTX *ssl_ctx, SSL *ssl, const char *name) in tls_cryptoapi_ca_cert() argument 708 if (!X509_STORE_add_cert(SSL_CTX_get_cert_store(ssl_ctx), in tls_cryptoapi_ca_cert() 1122 void tls_deinit(void *ssl_ctx) in tls_deinit() argument 1124 struct tls_data *data = ssl_ctx; in tls_deinit() 1318 int tls_get_errors(void *ssl_ctx) in tls_get_errors() argument 1536 struct tls_connection * tls_connection_init(void *ssl_ctx) in tls_connection_init() argument 1538 struct tls_data *data = ssl_ctx; in tls_connection_init() 1568 conn->ssl_ctx = ssl; in tls_connection_init() 1613 void tls_connection_deinit(void *ssl_ctx, struct tls_connection *conn) in tls_connection_deinit() argument [all …]
|
D | tls_gnutls.c | 131 void tls_deinit(void *ssl_ctx) in tls_deinit() argument 133 struct tls_global *global = ssl_ctx; in tls_deinit() 148 int tls_get_errors(void *ssl_ctx) in tls_get_errors() argument 239 struct tls_connection * tls_connection_init(void *ssl_ctx) in tls_connection_init() argument 241 struct tls_global *global = ssl_ctx; in tls_connection_init() 276 void tls_connection_deinit(void *ssl_ctx, struct tls_connection *conn) in tls_connection_deinit() argument 292 int tls_connection_established(void *ssl_ctx, struct tls_connection *conn) in tls_connection_established() argument 306 int tls_connection_shutdown(void *ssl_ctx, struct tls_connection *conn) in tls_connection_shutdown() argument 308 struct tls_global *global = ssl_ctx; in tls_connection_shutdown() 854 int tls_global_set_verify(void *ssl_ctx, int check_crl, int strict) in tls_global_set_verify() argument [all …]
|
D | tls_none.c | 20 void tls_deinit(void *ssl_ctx) in tls_deinit() argument 158 int tls_get_version(void *ssl_ctx, struct tls_connection *conn, in tls_get_version() argument
|
D | tls_openssl.h | 16 enum ocsp_result check_ocsp_resp(SSL_CTX *ssl_ctx, SSL *ssl, X509 *cert,
|
D | tls_internal.c | 68 void tls_deinit(void *ssl_ctx) in tls_deinit() argument 70 struct tls_global *global = ssl_ctx; in tls_deinit() 682 int tls_get_version(void *ssl_ctx, struct tls_connection *conn, in tls_get_version() argument
|
/external/libevent/sample/ |
D | https-client.c | 201 SSL_CTX *ssl_ctx = NULL; in main() local 332 ssl_ctx = SSL_CTX_new(SSLv23_method()); in main() 333 if (!ssl_ctx) { in main() 343 if (1 != SSL_CTX_load_verify_locations(ssl_ctx, crt, NULL)) { in main() 355 SSL_CTX_set_verify(ssl_ctx, SSL_VERIFY_PEER, NULL); in main() 369 SSL_CTX_set_cert_verify_callback(ssl_ctx, cert_verify_callback, in main() 383 ssl = SSL_new(ssl_ctx); in main() 479 if (ssl_ctx) in main() 480 SSL_CTX_free(ssl_ctx); in main()
|
D | le-proxy.c | 44 static SSL_CTX *ssl_ctx = NULL; variable 167 if (!ssl_ctx || use_wrapper) in accept_cb() 171 SSL *ssl = SSL_new(ssl_ctx); in accept_cb() 187 if (ssl_ctx && use_wrapper) { in accept_cb() 189 SSL *ssl = SSL_new(ssl_ctx); in accept_cb() 273 ssl_ctx = SSL_CTX_new(TLS_method()); in main()
|
/external/wpa_supplicant_8/src/eap_peer/ |
D | eap_tls_common.c | 242 data->conn = tls_connection_init(data->ssl_ctx); in eap_tls_init_connection() 249 res = tls_connection_set_params(data->ssl_ctx, data->conn, params); in eap_tls_init_connection() 271 tls_connection_deinit(data->ssl_ctx, data->conn); in eap_tls_init_connection() 302 data->ssl_ctx = sm->init_phase2 && sm->ssl_ctx2 ? sm->ssl_ctx2 : in eap_peer_tls_ssl_init() 303 sm->ssl_ctx; in eap_peer_tls_ssl_init() 341 tls_connection_deinit(data->ssl_ctx, data->conn); in eap_peer_tls_ssl_deinit() 375 if (tls_connection_export_key(data->ssl_ctx, data->conn, label, in eap_peer_tls_derive_key() 428 if (tls_connection_get_random(sm->ssl_ctx, data->conn, &keys) || in eap_peer_tls_derive_session_id() 582 data->tls_out = tls_connection_handshake(data->ssl_ctx, data->conn, in eap_tls_process_input() 588 tls_connection_established(data->ssl_ctx, data->conn) && in eap_tls_process_input() [all …]
|
D | eap_tls.c | 26 void *ssl_ctx; member 48 data->ssl_ctx = sm->init_phase2 && sm->ssl_ctx2 ? sm->ssl_ctx2 : in eap_tls_init() 49 sm->ssl_ctx; in eap_tls_init() 85 data->ssl_ctx = sm->init_phase2 && sm->ssl_ctx2 ? sm->ssl_ctx2 : in eap_unauth_tls_init() 86 sm->ssl_ctx; in eap_unauth_tls_init() 112 data->ssl_ctx = sm->init_phase2 && sm->ssl_ctx2 ? sm->ssl_ctx2 : in eap_wfa_unauth_tls_init() 113 sm->ssl_ctx; in eap_wfa_unauth_tls_init() 294 if (tls_connection_established(data->ssl_ctx, data->ssl.conn)) in eap_tls_process() 309 return tls_connection_established(data->ssl_ctx, data->ssl.conn); in eap_tls_has_reauth_data()
|
D | eap_fast.c | 179 if (tls_connection_set_session_ticket_cb(sm->ssl_ctx, data->ssl.conn, in eap_fast_init() 193 if (tls_connection_enable_workaround(sm->ssl_ctx, data->ssl.conn)) { in eap_fast_init() 278 sks = eap_fast_derive_key(sm->ssl_ctx, data->ssl.conn, in eap_fast_derive_key_auth() 305 eap_fast_derive_key(sm->ssl_ctx, data->ssl.conn, in eap_fast_derive_key_provisioning() 1416 tls_connection_client_hello_ext(sm->ssl_ctx, data->ssl.conn, in eap_fast_use_pac_opaque() 1433 if (tls_connection_client_hello_ext(sm->ssl_ctx, data->ssl.conn, in eap_fast_clear_pac_opaque_ext() 1467 if (tls_connection_set_cipher_list(sm->ssl_ctx, data->ssl.conn, in eap_fast_set_provisioning_ciphers() 1558 if (tls_connection_established(sm->ssl_ctx, data->ssl.conn) && in eap_fast_process() 1621 if (tls_connection_established(sm->ssl_ctx, data->ssl.conn)) { in eap_fast_process() 1628 tls_get_cipher(sm->ssl_ctx, data->ssl.conn, in eap_fast_process() [all …]
|
D | eap_tls_common.h | 70 void *ssl_ctx; member
|
/external/wpa_supplicant_8/src/ap/ |
D | authsrv.c | 114 srv.ssl_ctx = hapd->ssl_ctx; in hostapd_setup_radius_srv() 217 hapd->ssl_ctx = tls_init(&conf); in authsrv_init() 218 if (hapd->ssl_ctx == NULL) { in authsrv_init() 238 if (tls_global_set_params(hapd->ssl_ctx, ¶ms)) { in authsrv_init() 244 if (tls_global_set_verify(hapd->ssl_ctx, in authsrv_init() 287 if (hapd->ssl_ctx) { in authsrv_deinit() 288 tls_deinit(hapd->ssl_ctx); in authsrv_deinit() 289 hapd->ssl_ctx = NULL; in authsrv_deinit()
|
/external/wpa_supplicant_8/src/eap_common/ |
D | eap_fast_common.c | 96 u8 * eap_fast_derive_key(void *ssl_ctx, struct tls_connection *conn, size_t len) in eap_fast_derive_key() argument 104 if (tls_connection_get_eap_fast_key(ssl_ctx, conn, out, len)) { in eap_fast_derive_key()
|
D | eap_fast_common.h | 100 u8 * eap_fast_derive_key(void *ssl_ctx, struct tls_connection *conn,
|
/external/wpa_supplicant_8/src/radius/ |
D | radius_server.h | 68 void *ssl_ctx; member
|
/external/libbrillo/brillo/streams/ |
D | tls_stream.cc | 330 SSL_CTX* ssl_ctx = ssl ? SSL_get_SSL_CTX(ssl) : nullptr; in OnCertVerifyResultsStatic() local 332 if (ssl_ctx) { in OnCertVerifyResultsStatic() 334 ssl_ctx, ssl_ctx_private_data_index)); in OnCertVerifyResultsStatic()
|
/external/boringssl/src/ssl/ |
D | ssl_x509.cc | 371 SSL_CTX *ssl_ctx = hs->ssl->ctx.get(); in ssl_crypto_x509_session_verify_cert_chain() local 372 X509_STORE *verify_store = ssl_ctx->cert_store; in ssl_crypto_x509_session_verify_cert_chain() 403 if (ssl_ctx->app_verify_callback != NULL) { in ssl_crypto_x509_session_verify_cert_chain() 405 ssl_ctx->app_verify_callback(ctx.get(), ssl_ctx->app_verify_arg); in ssl_crypto_x509_session_verify_cert_chain()
|