Home
last modified time | relevance | path

Searched refs:psk_identity (Results 1 – 8 of 8) sorted by relevance

/external/boringssl/src/ssl/
Dssl_asn1.cc246 if (in->psk_identity) { in SSL_SESSION_to_bytes_full()
249 (const uint8_t *)in->psk_identity.get(), in SSL_SESSION_to_bytes_full()
250 strlen(in->psk_identity.get()))) { in SSL_SESSION_to_bytes_full()
604 if (!SSL_SESSION_parse_string(&session, &ret->psk_identity, in SSL_SESSION_parse()
Dhandshake_server.cc1164 CBS psk_identity; in do_read_client_key_exchange() local
1168 if (!CBS_get_u16_length_prefixed(&client_key_exchange, &psk_identity) || in do_read_client_key_exchange()
1175 if (CBS_len(&psk_identity) > PSK_MAX_IDENTITY_LEN || in do_read_client_key_exchange()
1176 CBS_contains_zero_byte(&psk_identity)) { in do_read_client_key_exchange()
1182 if (!CBS_strdup(&psk_identity, &raw)) { in do_read_client_key_exchange()
1187 hs->new_session->psk_identity.reset(raw); in do_read_client_key_exchange()
1305 ssl, hs->new_session->psk_identity.get(), psk, sizeof(psk)); in do_read_client_key_exchange()
Dssl_session.cc210 if (session->psk_identity != nullptr) { in SSL_SESSION_dup()
211 new_session->psk_identity.reset(BUF_strdup(session->psk_identity.get())); in SSL_SESSION_dup()
212 if (new_session->psk_identity == nullptr) { in SSL_SESSION_dup()
Dhandshake_client.cc1294 hs->new_session->psk_identity.reset(BUF_strdup(identity)); in do_send_client_key_exchange()
1295 if (hs->new_session->psk_identity == nullptr) { in do_send_client_key_exchange()
Dinternal.h3299 bssl::UniquePtr<char> psk_identity;
Dssl_lib.cc2579 return session->psk_identity.get(); in SSL_get_psk_identity()
/external/boringssl/src/ssl/test/
Dtest_config.cc171 { "-psk-identity", &TestConfig::psk_identity },
1360 if (config->psk_identity.empty()) { in PskClientCallback()
1366 strcmp(hint, config->psk_identity.c_str()) != 0) { in PskClientCallback()
1372 if (config->psk_identity.size() >= max_identity_len || in PskClientCallback()
1378 BUF_strlcpy(out_identity, config->psk_identity.c_str(), max_identity_len); in PskClientCallback()
1387 if (strcmp(identity, config->psk_identity.c_str()) != 0) { in PskServerCallback()
1555 if (!psk_identity.empty() && in NewSSL()
1556 !SSL_use_psk_identity_hint(ssl.get(), psk_identity.c_str())) { in NewSSL()
Dtest_config.h74 std::string psk_identity; member