Home
last modified time | relevance | path

Searched refs:ssl_ctx (Results 1 – 25 of 42) sorted by relevance

12

/external/chromium_org/net/tools/flip_server/
Dspdy_ssl.cc45 state->ssl_ctx = SSL_CTX_new(state->ssl_method); in InitSSL()
46 if (!state->ssl_ctx) { in InitSSL()
51 SSL_CTX_set_options(state->ssl_ctx, in InitSSL()
53 if (SSL_CTX_use_certificate_chain_file(state->ssl_ctx, in InitSSL()
59 state->ssl_ctx, ssl_key_name.c_str(), SSL_FILETYPE_PEM) <= 0) { in InitSSL()
63 if (!SSL_CTX_check_private_key(state->ssl_ctx)) { in InitSSL()
69 state->ssl_ctx, ssl_set_npn_callback, NULL); in InitSSL()
72 SSL_CTX_set_cipher_list(state->ssl_ctx, SSL_CIPHER_LIST); in InitSSL()
76 SSL_CTX_set_timeout(state->ssl_ctx, session_expiration_time); in InitSSL()
80 SSL_CTX_set_mode(state->ssl_ctx, SSL_MODE_RELEASE_BUFFERS); in InitSSL()
[all …]
Dspdy_ssl.h16 SSL_CTX* ssl_ctx; member
25 SSL* CreateSSLContext(SSL_CTX* ssl_ctx);
/external/chromium_org/third_party/boringssl/src/ssl/test/
Dbssl_shim.cc186 SSL_CTX *ssl_ctx = NULL; in setup_ctx() local
207 ssl_ctx = SSL_CTX_new(method); in setup_ctx()
208 if (ssl_ctx == NULL) { in setup_ctx()
217 SSL_CTX_set_read_ahead(ssl_ctx, 1); in setup_ctx()
220 if (!SSL_CTX_set_ecdh_auto(ssl_ctx, 1)) { in setup_ctx()
224 if (!SSL_CTX_set_cipher_list(ssl_ctx, "ALL")) { in setup_ctx()
229 if (!SSL_CTX_set_tmp_dh(ssl_ctx, dh)) { in setup_ctx()
233 SSL_CTX_set_session_cache_mode(ssl_ctx, SSL_SESS_CACHE_BOTH); in setup_ctx()
235 ssl_ctx->select_certificate_cb = select_certificate_callback; in setup_ctx()
238 ssl_ctx, next_protos_advertised_callback, NULL); in setup_ctx()
[all …]
/external/wpa_supplicant_8/src/crypto/
Dtls_openssl.c478 static int tls_cryptoapi_ca_cert(SSL_CTX *ssl_ctx, SSL *ssl, const char *name) in tls_cryptoapi_ca_cert() argument
524 if (!X509_STORE_add_cert(ssl_ctx->cert_store, cert)) { in tls_cryptoapi_ca_cert()
852 void tls_deinit(void *ssl_ctx) in tls_deinit() argument
854 SSL_CTX *ssl = ssl_ctx; in tls_deinit()
986 int tls_get_errors(void *ssl_ctx) in tls_get_errors() argument
1020 struct tls_connection * tls_connection_init(void *ssl_ctx) in tls_connection_init() argument
1022 SSL_CTX *ssl = ssl_ctx; in tls_connection_init()
1078 void tls_connection_deinit(void *ssl_ctx, struct tls_connection *conn) in tls_connection_deinit() argument
1092 int tls_connection_established(void *ssl_ctx, struct tls_connection *conn) in tls_connection_established() argument
1098 int tls_connection_shutdown(void *ssl_ctx, struct tls_connection *conn) in tls_connection_shutdown() argument
[all …]
Dtls_schannel.c99 void tls_deinit(void *ssl_ctx) in tls_deinit() argument
101 struct tls_global *global = ssl_ctx; in tls_deinit()
110 int tls_get_errors(void *ssl_ctx) in tls_get_errors() argument
116 struct tls_connection * tls_connection_init(void *ssl_ctx) in tls_connection_init() argument
129 void tls_connection_deinit(void *ssl_ctx, struct tls_connection *conn) in tls_connection_deinit() argument
138 int tls_connection_established(void *ssl_ctx, struct tls_connection *conn) in tls_connection_established() argument
144 int tls_connection_shutdown(void *ssl_ctx, struct tls_connection *conn) in tls_connection_shutdown() argument
146 struct tls_global *global = ssl_ctx; in tls_connection_shutdown()
167 int tls_global_set_verify(void *ssl_ctx, int check_crl) in tls_global_set_verify() argument
173 int tls_connection_set_verify(void *ssl_ctx, struct tls_connection *conn, in tls_connection_set_verify() argument
[all …]
Dtls_gnutls.c180 void tls_deinit(void *ssl_ctx) in tls_deinit() argument
182 struct tls_global *global = ssl_ctx; in tls_deinit()
196 int tls_get_errors(void *ssl_ctx) in tls_get_errors() argument
301 struct tls_connection * tls_connection_init(void *ssl_ctx) in tls_connection_init() argument
303 struct tls_global *global = ssl_ctx; in tls_connection_init()
337 void tls_connection_deinit(void *ssl_ctx, struct tls_connection *conn) in tls_connection_deinit() argument
353 int tls_connection_established(void *ssl_ctx, struct tls_connection *conn) in tls_connection_established() argument
359 int tls_connection_shutdown(void *ssl_ctx, struct tls_connection *conn) in tls_connection_shutdown() argument
361 struct tls_global *global = ssl_ctx; in tls_connection_shutdown()
728 int tls_global_set_verify(void *ssl_ctx, int check_crl) in tls_global_set_verify() argument
[all …]
Dtls_none.c20 void tls_deinit(void *ssl_ctx) in tls_deinit() argument
Dtls_internal.c58 void tls_deinit(void *ssl_ctx) in tls_deinit() argument
60 struct tls_global *global = ssl_ctx; in tls_deinit()
/external/openssl/crypto/threads/
Dmttest.c370 int ndoit(SSL_CTX *ssl_ctx[2]) in ndoit()
376 ctx[0]=(char *)ssl_ctx[0]; in ndoit()
377 ctx[1]=(char *)ssl_ctx[1]; in ndoit()
381 ctx[2]=(char *)SSL_new(ssl_ctx[0]); in ndoit()
382 ctx[3]=(char *)SSL_new(ssl_ctx[1]); in ndoit()
765 SSL_CTX *ssl_ctx[2]; in do_threads() local
771 ssl_ctx[0]=s_ctx; in do_threads()
772 ssl_ctx[1]=c_ctx; in do_threads()
780 (void *)ssl_ctx, in do_threads()
893 SSL_CTX *ssl_ctx[2]; in do_threads() local
[all …]
/external/wpa_supplicant_8/src/ap/
Dauthsrv.c101 srv.ssl_ctx = hapd->ssl_ctx; in hostapd_setup_radius_srv()
148 hapd->ssl_ctx = tls_init(NULL); in authsrv_init()
149 if (hapd->ssl_ctx == NULL) { in authsrv_init()
164 if (tls_global_set_params(hapd->ssl_ctx, &params)) { in authsrv_init()
170 if (tls_global_set_verify(hapd->ssl_ctx, in authsrv_init()
211 if (hapd->ssl_ctx) { in authsrv_deinit()
212 tls_deinit(hapd->ssl_ctx); in authsrv_deinit()
213 hapd->ssl_ctx = NULL; in authsrv_deinit()
/external/wpa_supplicant_8/src/eap_server/
Deap_server_tls_common.c49 if (sm->ssl_ctx == NULL) { in eap_server_tls_ssl_init()
57 data->conn = tls_connection_init(sm->ssl_ctx); in eap_server_tls_ssl_init()
71 if (tls_connection_set_verify(sm->ssl_ctx, data->conn, verify_peer)) { in eap_server_tls_ssl_init()
74 tls_connection_deinit(sm->ssl_ctx, data->conn); in eap_server_tls_ssl_init()
93 tls_connection_deinit(sm->ssl_ctx, data->conn); in eap_server_tls_ssl_deinit()
110 if (tls_connection_prf(sm->ssl_ctx, data->conn, label, 0, out, len) == in eap_server_tls_derive_key()
114 if (tls_connection_get_keys(sm->ssl_ctx, data->conn, &keys)) in eap_server_tls_derive_key()
290 data->tls_out = tls_connection_server_handshake(sm->ssl_ctx, in eap_server_tls_phase1()
297 if (tls_connection_get_failed(sm->ssl_ctx, data->conn)) { in eap_server_tls_phase1()
389 buf = tls_connection_encrypt(sm->ssl_ctx, data->conn, in eap_server_tls_encrypt()
[all …]
Deap_server_fast.c277 sks = eap_fast_derive_key(sm->ssl_ctx, data->ssl.conn, "key expansion", in eap_fast_derive_key_auth()
303 eap_fast_derive_key(sm->ssl_ctx, data->ssl.conn, in eap_fast_derive_key_provisioning()
438 if (tls_connection_set_cipher_list(sm->ssl_ctx, data->ssl.conn, in eap_fast_init()
446 if (tls_connection_set_session_ticket_cb(sm->ssl_ctx, data->ssl.conn, in eap_fast_init()
551 if (tls_get_cipher(sm->ssl_ctx, data->ssl.conn, cipher, sizeof(cipher)) in eap_fast_phase1_done()
868 if (tls_connection_established(sm->ssl_ctx, data->ssl.conn)) { in eap_fast_buildReq()
1393 in_decrypted = tls_connection_decrypt(sm->ssl_ctx, data->ssl.conn, in eap_fast_process_phase2()
1453 if (!tls_connection_established(sm->ssl_ctx, data->ssl.conn) || in eap_fast_process_phase1()
Deap.h89 void *ssl_ctx; member
Deap_i.h153 void *ssl_ctx; member
/external/wpa_supplicant_8/src/eap_peer/
Deap_tls_common.c185 data->conn = tls_connection_init(data->ssl_ctx); in eap_tls_init_connection()
192 res = tls_connection_set_params(data->ssl_ctx, data->conn, params); in eap_tls_init_connection()
211 tls_connection_deinit(data->ssl_ctx, data->conn); in eap_tls_init_connection()
217 tls_connection_deinit(data->ssl_ctx, data->conn); in eap_tls_init_connection()
248 data->ssl_ctx = sm->init_phase2 && sm->ssl_ctx2 ? sm->ssl_ctx2 : in eap_peer_tls_ssl_init()
249 sm->ssl_ctx; in eap_peer_tls_ssl_init()
287 tls_connection_deinit(data->ssl_ctx, data->conn); in eap_peer_tls_ssl_deinit()
320 if (tls_connection_prf(data->ssl_ctx, data->conn, label, 0, out, len) in eap_peer_tls_derive_key()
330 if (tls_connection_get_keys(data->ssl_ctx, data->conn, &keys)) in eap_peer_tls_derive_key()
384 if (tls_connection_get_keys(sm->ssl_ctx, data->conn, &keys)) in eap_peer_tls_derive_session_id()
[all …]
Deap_tls.c26 void *ssl_ctx; member
47 data->ssl_ctx = sm->init_phase2 && sm->ssl_ctx2 ? sm->ssl_ctx2 : in eap_tls_init()
48 sm->ssl_ctx; in eap_tls_init()
84 data->ssl_ctx = sm->init_phase2 && sm->ssl_ctx2 ? sm->ssl_ctx2 : in eap_unauth_tls_init()
85 sm->ssl_ctx; in eap_unauth_tls_init()
111 data->ssl_ctx = sm->init_phase2 && sm->ssl_ctx2 ? sm->ssl_ctx2 : in eap_wfa_unauth_tls_init()
112 sm->ssl_ctx; in eap_wfa_unauth_tls_init()
252 if (tls_connection_established(data->ssl_ctx, data->ssl.conn)) in eap_tls_process()
267 return tls_connection_established(data->ssl_ctx, data->ssl.conn); in eap_tls_has_reauth_data()
Deap_fast.c182 if (tls_connection_set_session_ticket_cb(sm->ssl_ctx, data->ssl.conn, in eap_fast_init()
196 if (tls_connection_enable_workaround(sm->ssl_ctx, data->ssl.conn)) { in eap_fast_init()
279 sks = eap_fast_derive_key(sm->ssl_ctx, data->ssl.conn, "key expansion", in eap_fast_derive_key_auth()
305 eap_fast_derive_key(sm->ssl_ctx, data->ssl.conn, in eap_fast_derive_key_provisioning()
1412 tls_connection_client_hello_ext(sm->ssl_ctx, data->ssl.conn, in eap_fast_use_pac_opaque()
1429 if (tls_connection_client_hello_ext(sm->ssl_ctx, data->ssl.conn, in eap_fast_clear_pac_opaque_ext()
1461 if (tls_connection_set_cipher_list(sm->ssl_ctx, data->ssl.conn, in eap_fast_set_provisioning_ciphers()
1549 if (tls_connection_established(sm->ssl_ctx, data->ssl.conn) && in eap_fast_process()
1571 if (tls_connection_established(sm->ssl_ctx, data->ssl.conn)) { in eap_fast_process()
1578 tls_get_cipher(sm->ssl_ctx, data->ssl.conn, in eap_fast_process()
[all …]
Deap_tls_common.h70 void *ssl_ctx; member
Deap_i.h334 void *ssl_ctx; member
/external/wpa_supplicant_8/src/eap_common/
Deap_fast_common.c96 u8 * eap_fast_derive_key(void *ssl_ctx, struct tls_connection *conn, in eap_fast_derive_key() argument
103 block_size = tls_connection_get_keyblock_size(ssl_ctx, conn); in eap_fast_derive_key()
111 if (tls_connection_prf(ssl_ctx, conn, label, 1, out, block_size + len) in eap_fast_derive_key()
117 if (tls_connection_get_keys(ssl_ctx, conn, &keys)) in eap_fast_derive_key()
Deap_fast_common.h100 u8 * eap_fast_derive_key(void *ssl_ctx, struct tls_connection *conn,
/external/wpa_supplicant_8/src/radius/
Dradius_server.h68 void *ssl_ctx; member
/external/openssl/apps/
Ds_server.c1941 static void print_stats(BIO *bio, SSL_CTX *ssl_ctx) in print_stats() argument
1944 SSL_CTX_sess_number(ssl_ctx)); in print_stats()
1946 SSL_CTX_sess_connect(ssl_ctx)); in print_stats()
1948 SSL_CTX_sess_connect_renegotiate(ssl_ctx)); in print_stats()
1950 SSL_CTX_sess_connect_good(ssl_ctx)); in print_stats()
1952 SSL_CTX_sess_accept(ssl_ctx)); in print_stats()
1954 SSL_CTX_sess_accept_renegotiate(ssl_ctx)); in print_stats()
1956 SSL_CTX_sess_accept_good(ssl_ctx)); in print_stats()
1957 BIO_printf(bio,"%4ld session cache hits\n",SSL_CTX_sess_hits(ssl_ctx)); in print_stats()
1958 BIO_printf(bio,"%4ld session cache misses\n",SSL_CTX_sess_misses(ssl_ctx)); in print_stats()
[all …]
/external/wpa_supplicant_8/src/eapol_auth/
Deapol_auth_sm.h22 void *ssl_ctx; member
/external/conscrypt/src/main/java/org/conscrypt/
DNativeCrypto.java882 public static native void SSL_CTX_free(long ssl_ctx); in SSL_CTX_free() argument
884 public static native void SSL_CTX_set_session_id_context(long ssl_ctx, byte[] sid_ctx); in SSL_CTX_set_session_id_context() argument
886 public static native long SSL_new(long ssl_ctx) throws SSLException; in SSL_new() argument

12