Home
last modified time | relevance | path

Searched refs:sess (Results 26 - 50 of 129) sorted by relevance

123456

/third_party/openssl/test/
H A Ddtlstest.c198 SSL_SESSION *sess = NULL; in test_dtls_drop_records() local
229 || !TEST_ptr(sess = SSL_get1_session(clientssl))) in test_dtls_drop_records()
259 if (sess != NULL) { in test_dtls_drop_records()
260 if (!TEST_true(SSL_set_session(clientssl, sess))) in test_dtls_drop_records()
289 if (sess != NULL && !TEST_true(SSL_session_reused(clientssl))) in test_dtls_drop_records()
299 SSL_SESSION_free(sess); in test_dtls_drop_records()
H A Dbad_dtls_test.c465 SSL_SESSION *sess = NULL; in test_bad_dtls() local
483 sess = client_session(); in test_bad_dtls()
484 if (!TEST_ptr(sess)) in test_bad_dtls()
504 || !TEST_true(SSL_set_session(con, sess))) in test_bad_dtls()
506 SSL_SESSION_free(sess); in test_bad_dtls()
/third_party/openssl/ssl/
H A Dssl_sess.c112 SSL_SESSION *sess; in SSL_get1_session() local
120 sess = ssl->session; in SSL_get1_session()
121 if (sess) in SSL_get1_session()
122 SSL_SESSION_up_ref(sess); in SSL_get1_session()
124 return sess; in SSL_get1_session()
308 SSL_SESSION *sess = ssl_session_dup_intern(src, ticket); in ssl_session_dup() local
310 if (sess != NULL) in ssl_session_dup()
311 sess->not_resumable = 0; in ssl_session_dup()
313 return sess; in ssl_session_dup()
1317 int (*cb) (struct ssl_st *ssl, SSL_SESSION *sess)) in SSL_CTX_sess_set_new_cb()
1316 SSL_CTX_sess_set_new_cb(SSL_CTX *ctx, int (*cb) (struct ssl_st *ssl, SSL_SESSION *sess)) SSL_CTX_sess_set_new_cb() argument
1326 SSL_CTX_sess_set_remove_cb(SSL_CTX *ctx, void (*cb) (SSL_CTX *ctx, SSL_SESSION *sess)) SSL_CTX_sess_set_remove_cb() argument
[all...]
H A Dt1_lib.c1787 SSL_SESSION *sess = NULL; in tls_decrypt_ticket() local
1945 sess = d2i_SSL_SESSION(NULL, &p, slen); in tls_decrypt_ticket()
1948 if (sess) { in tls_decrypt_ticket()
1951 SSL_SESSION_free(sess); in tls_decrypt_ticket()
1952 sess = NULL; in tls_decrypt_ticket()
1963 memcpy(sess->session_id, sess_id, sesslen); in tls_decrypt_ticket()
1964 sess->session_id_length = sesslen; in tls_decrypt_ticket()
1997 retcb = s->session_ctx->decrypt_ticket_cb(s, sess, etick, keyname_len, in tls_decrypt_ticket()
2007 SSL_SESSION_free(sess); in tls_decrypt_ticket()
2008 sess in tls_decrypt_ticket()
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/
H A Dtls_wolfssl.c176 static void remove_session_cb(WOLFSSL_CTX *ctx, WOLFSSL_SESSION *sess) in remove_session_cb() argument
180 buf = wolfSSL_SESSION_get_ex_data(sess, tls_ex_idx_session); in remove_session_cb()
184 "wolfSSL: Free application session data %p (sess %p)", in remove_session_cb()
185 buf, sess); in remove_session_cb()
188 wolfSSL_SESSION_set_ex_data(sess, tls_ex_idx_session, NULL); in remove_session_cb()
2144 WOLFSSL_SESSION *sess; in tls_connection_remove_session() local
2146 sess = wolfSSL_get_session(conn->ssl); in tls_connection_remove_session()
2147 if (!sess) in tls_connection_remove_session()
2150 wolfSSL_SSL_SESSION_set_timeout(sess, 0); in tls_connection_remove_session()
2159 WOLFSSL_SESSION *sess; in tls_connection_set_success_data() local
2193 WOLFSSL_SESSION *sess; tls_connection_get_success_data() local
[all...]
H A Dtls_openssl.c933 static void remove_session_cb(SSL_CTX *ctx, SSL_SESSION *sess) in remove_session_cb() argument
939 buf = SSL_SESSION_get_ex_data(sess, tls_ex_idx_session); in remove_session_cb()
943 "OpenSSL: Free application session data %p (sess %p)", in remove_session_cb()
944 buf, sess); in remove_session_cb()
947 SSL_SESSION_set_ex_data(sess, tls_ex_idx_session, NULL); in remove_session_cb()
4058 SSL_SESSION *sess; in tls_connection_get_eap_fast_key() local
4082 sess = SSL_get_session(ssl); in tls_connection_get_eap_fast_key()
4083 if (!ver || !sess) in tls_connection_get_eap_fast_key()
4102 master_key_len = SSL_SESSION_get_master_key(sess, master_key, in tls_connection_get_eap_fast_key()
5456 SSL_SESSION *sess; in tls_connection_set_success_data() local
5494 SSL_SESSION *sess; tls_connection_get_success_data() local
5505 SSL_SESSION *sess; tls_connection_remove_session() local
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/
H A Dtls_wolfssl.c177 static void remove_session_cb(WOLFSSL_CTX *ctx, WOLFSSL_SESSION *sess) in remove_session_cb() argument
181 buf = wolfSSL_SESSION_get_ex_data(sess, tls_ex_idx_session); in remove_session_cb()
185 "wolfSSL: Free application session data %p (sess %p)", in remove_session_cb()
186 buf, sess); in remove_session_cb()
189 wolfSSL_SESSION_set_ex_data(sess, tls_ex_idx_session, NULL); in remove_session_cb()
2151 WOLFSSL_SESSION *sess; in tls_connection_remove_session() local
2153 sess = wolfSSL_get_session(conn->ssl); in tls_connection_remove_session()
2154 if (!sess) in tls_connection_remove_session()
2157 wolfSSL_SSL_SESSION_set_timeout(sess, 0); in tls_connection_remove_session()
2166 WOLFSSL_SESSION *sess; in tls_connection_set_success_data() local
2200 WOLFSSL_SESSION *sess; tls_connection_get_success_data() local
[all...]
H A Dtls_openssl.c939 static void remove_session_cb(SSL_CTX *ctx, SSL_SESSION *sess) in remove_session_cb() argument
945 buf = SSL_SESSION_get_ex_data(sess, tls_ex_idx_session); in remove_session_cb()
949 "OpenSSL: Free application session data %p (sess %p)", in remove_session_cb()
950 buf, sess); in remove_session_cb()
953 SSL_SESSION_set_ex_data(sess, tls_ex_idx_session, NULL); in remove_session_cb()
4316 SSL_SESSION *sess; in tls_connection_get_eap_fast_key() local
4340 sess = SSL_get_session(ssl); in tls_connection_get_eap_fast_key()
4341 if (!ver || !sess) in tls_connection_get_eap_fast_key()
4360 master_key_len = SSL_SESSION_get_master_key(sess, master_key, in tls_connection_get_eap_fast_key()
5772 SSL_SESSION *sess; in tls_connection_set_success_data() local
5810 SSL_SESSION *sess; tls_connection_get_success_data() local
5821 SSL_SESSION *sess; tls_connection_remove_session() local
[all...]
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/taurus/ai_sample/smp/
H A Dsample_media_ai.c1698 MppSess *sess = (MppSess*)malloc(sizeof(*sess)); in MppSessNew() local
1699 if (sess == NULL) { in MppSessNew()
1701 HI_ASSERT(sess); in MppSessNew()
1704 if (memset_s(sess, sizeof(*sess), 0, sizeof(*sess)) != EOK) { in MppSessNew()
1708 sess->vpssGrp = -1; in MppSessNew()
1709 sess->vpssChn0 = -1; in MppSessNew()
1710 sess in MppSessNew()
1719 ViVpssCreate(MppSess** sess, const ViCfg* viCfg, const VpssCfg* vpssCfg) ViVpssCreate() argument
[all...]
H A Dsample_media_ai.h224 int ViVpssCreate(MppSess** sess, const ViCfg* viCfg, const VpssCfg* vpssCfg);
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/taurus/helloworld/smp/
H A Dsample_lcd.c1670 MppSess *sess = (MppSess*)malloc(sizeof(*sess)); in MppSessNew() local
1671 if (sess == NULL) { in MppSessNew()
1673 HI_ASSERT(sess); in MppSessNew()
1676 if (memset_s(sess, sizeof(*sess), 0, sizeof(*sess)) != EOK) { in MppSessNew()
1680 sess->vpssGrp = -1; in MppSessNew()
1681 sess->vpssChn0 = -1; in MppSessNew()
1682 sess in MppSessNew()
1691 ViVpssCreate(MppSess** sess, const ViCfg* viCfg, const VpssCfg* vpssCfg) ViVpssCreate() argument
[all...]
H A Dsample_lcd.h211 int ViVpssCreate(MppSess** sess, const ViCfg* viCfg, const VpssCfg* vpssCfg);
/third_party/rust/crates/syn/benches/
H A Drust.rs85 let sess = ParseSess::with_dcx(handler, source_map); in bench()
89 &sess, in bench()
/third_party/node/deps/openssl/openssl/ssl/
H A Dssl_sess.c97 SSL_SESSION *sess; in SSL_get1_session() local
105 sess = ssl->session; in SSL_get1_session()
106 if (sess) in SSL_get1_session()
107 SSL_SESSION_up_ref(sess); in SSL_get1_session()
109 return sess; in SSL_get1_session()
1283 int (*cb) (struct ssl_st *ssl, SSL_SESSION *sess)) in SSL_CTX_sess_set_new_cb()
1288 int (*SSL_CTX_sess_get_new_cb(SSL_CTX *ctx)) (SSL *ssl, SSL_SESSION *sess) { in SSL_CTX_sess_get_new_cb()
1293 void (*cb) (SSL_CTX *ctx, SSL_SESSION *sess)) in SSL_CTX_sess_set_remove_cb()
1299 SSL_SESSION *sess) { in SSL_CTX_sess_get_remove_cb()
1282 SSL_CTX_sess_set_new_cb(SSL_CTX *ctx, int (*cb) (struct ssl_st *ssl, SSL_SESSION *sess)) SSL_CTX_sess_set_new_cb() argument
1292 SSL_CTX_sess_set_remove_cb(SSL_CTX *ctx, void (*cb) (SSL_CTX *ctx, SSL_SESSION *sess)) SSL_CTX_sess_set_remove_cb() argument
H A Dt1_lib.c1807 SSL_SESSION *sess = NULL; in tls_decrypt_ticket() local
1965 sess = d2i_SSL_SESSION(NULL, &p, slen); in tls_decrypt_ticket()
1968 if (sess) { in tls_decrypt_ticket()
1971 SSL_SESSION_free(sess); in tls_decrypt_ticket()
1972 sess = NULL; in tls_decrypt_ticket()
1983 memcpy(sess->session_id, sess_id, sesslen); in tls_decrypt_ticket()
1984 sess->session_id_length = sesslen; in tls_decrypt_ticket()
2017 retcb = s->session_ctx->decrypt_ticket_cb(s, sess, etick, keyname_len, in tls_decrypt_ticket()
2027 SSL_SESSION_free(sess); in tls_decrypt_ticket()
2028 sess in tls_decrypt_ticket()
[all...]
/third_party/node/src/crypto/
H A Dcrypto_tls.cc131 int NewSessionCallback(SSL* s, SSL_SESSION* sess) { in NewSessionCallback() argument
141 int size = i2d_SSL_SESSION(sess, nullptr); in NewSessionCallback()
153 CHECK_EQ(i2d_SSL_SESSION(sess, &session_data), size); in NewSessionCallback()
157 SSL_SESSION_get_id(sess, &session_id_length); in NewSessionCallback()
1715 SSL_SESSION* sess = SSL_get_session(w->ssl_.get()); in GetSession() local
1716 if (sess == nullptr) in GetSession()
1719 int slen = i2d_SSL_SESSION(sess, nullptr); in GetSession()
1730 CHECK_LT(0, i2d_SSL_SESSION(sess, &p)); in GetSession()
1749 SSLSessionPointer sess = GetTLSSession(sbuf.data(), sbuf.length()); in SetSession() local
1750 if (sess in SetSession()
1809 SSL_SESSION* sess = d2i_SSL_SESSION(nullptr, &p, sbuf.length()); LoadSession() local
1957 SSL_SESSION* sess = SSL_get_session(w->ssl_.get()); GetTLSTicket() local
[all...]
/third_party/node/deps/openssl/openssl/ssl/record/
H A Dssl3_record.c108 SSL_SESSION *sess = s->session; in early_data_count_ok() local
115 if (!s->server && sess->ext.max_early_data == 0) { in early_data_count_ok()
121 sess = s->psksession; in early_data_count_ok()
125 max_early_data = sess->ext.max_early_data; in early_data_count_ok()
129 max_early_data = s->recv_max_early_data < sess->ext.max_early_data in early_data_count_ok()
130 ? s->recv_max_early_data : sess->ext.max_early_data; in early_data_count_ok()
180 SSL_SESSION *sess; in ssl3_get_record() local
198 sess = s->session; in ssl3_get_record()
634 if ((sess != NULL) in ssl3_get_record()
1516 SSL_SESSION *sess; in dtls1_process_record() local
[all...]
/third_party/openssl/ssl/record/
H A Dssl3_record.c108 SSL_SESSION *sess = s->session; in early_data_count_ok() local
115 if (!s->server && sess->ext.max_early_data == 0) { in early_data_count_ok()
121 sess = s->psksession; in early_data_count_ok()
125 max_early_data = sess->ext.max_early_data; in early_data_count_ok()
129 max_early_data = s->recv_max_early_data < sess->ext.max_early_data in early_data_count_ok()
130 ? s->recv_max_early_data : sess->ext.max_early_data; in early_data_count_ok()
180 SSL_SESSION *sess; in ssl3_get_record() local
198 sess = s->session; in ssl3_get_record()
634 if ((sess != NULL) in ssl3_get_record()
1516 SSL_SESSION *sess; in dtls1_process_record() local
[all...]
/third_party/libwebsockets/lib/tls/openssl/
H A Dopenssl-client.c522 SSL_SESSION *sess; in lws_tls_client_connect() local
555 sess = SSL_get_session(wsi->tls.ssl); in lws_tls_client_connect()
556 if (sess) /* should always be true */ in lws_tls_client_connect()
558 SSL_SESSION_set_time(sess, (uint64_t)time(NULL)); /* extend session lifetime */ in lws_tls_client_connect()
560 SSL_SESSION_set_time(sess, (long)time(NULL)); /* extend session lifetime */ in lws_tls_client_connect()
/third_party/openssl/test/helpers/
H A Dhandshake.c1411 SSL_SESSION* sess = NULL; in do_handshake_internal() local
1626 if ((sess = SSL_get0_session(client.ssl)) != NULL) { in do_handshake_internal()
1627 SSL_SESSION_get0_ticket(sess, &tick, &tick_len); in do_handshake_internal()
1628 sess_id = SSL_SESSION_get_id(sess, &sess_id_len); in do_handshake_internal()
1661 if ((sess = SSL_get0_session(server.ssl)) != NULL) { in do_handshake_internal()
1662 SSL_SESSION_get0_ticket_appdata(sess, (void**)&tick, &tick_len); in do_handshake_internal()
/third_party/node/deps/openssl/openssl/apps/
H A Ds_client.c160 SSL_SESSION **sess) in psk_use_session_cb()
205 *sess = NULL; in psk_use_session_cb()
208 *sess = usesess; in psk_use_session_cb()
750 static int new_session_cb(SSL *s, SSL_SESSION *sess) in new_session_cb() argument
759 PEM_write_bio_SSL_SESSION(stmp, sess); in new_session_cb()
771 SSL_SESSION_print(bio_c_out, sess); in new_session_cb()
1953 SSL_SESSION *sess; in s_client_main() local
1960 sess = PEM_read_bio_SSL_SESSION(stmp, NULL, 0, NULL); in s_client_main()
1962 if (sess == NULL) { in s_client_main()
1967 if (!SSL_set_session(con, sess)) { in s_client_main()
158 psk_use_session_cb(SSL *s, const EVP_MD *md, const unsigned char **id, size_t *idlen, SSL_SESSION **sess) psk_use_session_cb() argument
[all...]
/third_party/openssl/apps/
H A Ds_client.c160 SSL_SESSION **sess) in psk_use_session_cb()
205 *sess = NULL; in psk_use_session_cb()
208 *sess = usesess; in psk_use_session_cb()
750 static int new_session_cb(SSL *s, SSL_SESSION *sess) in new_session_cb() argument
759 PEM_write_bio_SSL_SESSION(stmp, sess); in new_session_cb()
771 SSL_SESSION_print(bio_c_out, sess); in new_session_cb()
1953 SSL_SESSION *sess; in s_client_main() local
1960 sess = PEM_read_bio_SSL_SESSION(stmp, NULL, 0, NULL); in s_client_main()
1962 if (sess == NULL) { in s_client_main()
1967 if (!SSL_set_session(con, sess)) { in s_client_main()
158 psk_use_session_cb(SSL *s, const EVP_MD *md, const unsigned char **id, size_t *idlen, SSL_SESSION **sess) psk_use_session_cb() argument
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_server/
H A Deap_server.c1856 const struct eap_session_data *sess) in eap_server_sm_init()
1867 if (sess->assoc_wps_ie) in eap_server_sm_init()
1868 sm->assoc_wps_ie = wpabuf_dup(sess->assoc_wps_ie); in eap_server_sm_init()
1869 if (sess->assoc_p2p_ie) in eap_server_sm_init()
1870 sm->assoc_p2p_ie = wpabuf_dup(sess->assoc_p2p_ie); in eap_server_sm_init()
1871 if (sess->peer_addr) in eap_server_sm_init()
1872 os_memcpy(sm->peer_addr, sess->peer_addr, ETH_ALEN); in eap_server_sm_init()
1874 sm->tls_test_flags = sess->tls_test_flags; in eap_server_sm_init()
1853 eap_server_sm_init(void *eapol_ctx, const struct eapol_callbacks *eapol_cb, const struct eap_config *conf, const struct eap_session_data *sess) eap_server_sm_init() argument
H A Deap.h276 const struct eap_session_data *sess);
/third_party/node/deps/openssl/openssl/ssl/statem/
H A Dextensions.c1492 unsigned char *binderout, SSL_SESSION *sess, int sign, in tls_psk_do_binder()
1523 && sess->ext.max_early_data > 0) in tls_psk_do_binder()
1545 early_secret = (unsigned char *)sess->early_secret; in tls_psk_do_binder()
1547 if (!tls13_generate_secret(s, md, NULL, sess->master_key, in tls_psk_do_binder()
1548 sess->master_key_length, early_secret)) { in tls_psk_do_binder()
1490 tls_psk_do_binder(SSL *s, const EVP_MD *md, const unsigned char *msgstart, size_t binderoffset, const unsigned char *binderin, unsigned char *binderout, SSL_SESSION *sess, int sign, int external) tls_psk_do_binder() argument

Completed in 53 milliseconds

123456