Home
last modified time | relevance | path

Searched refs:psk_identity_hint (Results 1 – 13 of 13) sorted by relevance

/third_party/openssl/ssl/
Dssl_asn1.c35 ASN1_OCTET_STRING *psk_identity_hint; member
62 ASN1_EXP_OPT(SSL_SESSION_ASN1, psk_identity_hint, ASN1_OCTET_STRING, 7),
122 ASN1_OCTET_STRING psk_identity, psk_identity_hint; in i2d_SSL_SESSION() local
178 ssl_session_sinit(&as.psk_identity_hint, &psk_identity_hint, in i2d_SSL_SESSION()
179 in->psk_identity_hint); in i2d_SSL_SESSION()
323 if (!ssl_session_strndup(&ret->psk_identity_hint, as->psk_identity_hint)) in d2i_SSL_SESSION()
Dssl_txt.c92 (bp, "%s", x->psk_identity_hint ? x->psk_identity_hint : "None") <= 0) in SSL_SESSION_print()
Dssl_sess.c121 dest->psk_identity_hint = NULL; in ssl_session_dup()
160 if (src->psk_identity_hint) { in ssl_session_dup()
161 dest->psk_identity_hint = OPENSSL_strdup(src->psk_identity_hint); in ssl_session_dup()
162 if (dest->psk_identity_hint == NULL) { in ssl_session_dup()
768 OPENSSL_free(ss->psk_identity_hint); in SSL_SESSION_free()
Dssl_cert.c187 if (cert->psk_identity_hint) { in ssl_cert_dup()
188 ret->psk_identity_hint = OPENSSL_strdup(cert->psk_identity_hint); in ssl_cert_dup()
189 if (ret->psk_identity_hint == NULL) in ssl_cert_dup()
246 OPENSSL_free(c->psk_identity_hint); in ssl_cert_free()
Dssl_lib.c4280 OPENSSL_free(ctx->cert->psk_identity_hint); in SSL_CTX_use_psk_identity_hint()
4282 ctx->cert->psk_identity_hint = OPENSSL_strdup(identity_hint); in SSL_CTX_use_psk_identity_hint()
4283 if (ctx->cert->psk_identity_hint == NULL) in SSL_CTX_use_psk_identity_hint()
4286 ctx->cert->psk_identity_hint = NULL; in SSL_CTX_use_psk_identity_hint()
4299 OPENSSL_free(s->cert->psk_identity_hint); in SSL_use_psk_identity_hint()
4301 s->cert->psk_identity_hint = OPENSSL_strdup(identity_hint); in SSL_use_psk_identity_hint()
4302 if (s->cert->psk_identity_hint == NULL) in SSL_use_psk_identity_hint()
4305 s->cert->psk_identity_hint = NULL; in SSL_use_psk_identity_hint()
4313 return s->session->psk_identity_hint; in SSL_get_psk_identity_hint()
Dssl_local.h529 char *psk_identity_hint; member
1940 char *psk_identity_hint; member
/third_party/boringssl/src/ssl/
Dhandshake_client.cc952 CBS psk_identity_hint; in do_read_server_key_exchange() local
956 &psk_identity_hint)) { in do_read_server_key_exchange()
969 if (CBS_len(&psk_identity_hint) > PSK_MAX_IDENTITY_LEN || in do_read_server_key_exchange()
970 CBS_contains_zero_byte(&psk_identity_hint)) { in do_read_server_key_exchange()
982 if (CBS_len(&psk_identity_hint) != 0 && in do_read_server_key_exchange()
983 !CBS_strdup(&psk_identity_hint, &raw)) { in do_read_server_key_exchange()
Dssl_lib.cc700 if (ctx->psk_identity_hint) { in SSL_new()
701 ssl->config->psk_identity_hint.reset( in SSL_new()
702 BUF_strdup(ctx->psk_identity_hint.get())); in SSL_new()
703 if (ssl->config->psk_identity_hint == nullptr) { in SSL_new()
2593 return use_psk_identity_hint(&ctx->psk_identity_hint, identity_hint); in SSL_CTX_use_psk_identity_hint()
2600 return use_psk_identity_hint(&ssl->config->psk_identity_hint, identity_hint); in SSL_use_psk_identity_hint()
2611 return ssl->config->psk_identity_hint.get(); in SSL_get_psk_identity_hint()
Dhandshake_server.cc955 ((alg_a & SSL_aPSK) && hs->config->psk_identity_hint)) { in do_send_server_certificate()
967 size_t len = hs->config->psk_identity_hint == nullptr in do_send_server_certificate()
969 : strlen(hs->config->psk_identity_hint.get()); in do_send_server_certificate()
972 (const uint8_t *)hs->config->psk_identity_hint.get(), in do_send_server_certificate()
Dinternal.h2638 UniquePtr<char> psk_identity_hint;
3185 bssl::UniquePtr<char> psk_identity_hint;
/third_party/openssl/ssl/statem/
Dstatem_clnt.c1990 PACKET psk_identity_hint; in tls_process_ske_psk_preamble() local
1994 if (!PACKET_get_length_prefixed_2(pkt, &psk_identity_hint)) { in tls_process_ske_psk_preamble()
2006 if (PACKET_remaining(&psk_identity_hint) > PSK_MAX_IDENTITY_LEN) { in tls_process_ske_psk_preamble()
2013 if (PACKET_remaining(&psk_identity_hint) == 0) { in tls_process_ske_psk_preamble()
2014 OPENSSL_free(s->session->psk_identity_hint); in tls_process_ske_psk_preamble()
2015 s->session->psk_identity_hint = NULL; in tls_process_ske_psk_preamble()
2016 } else if (!PACKET_strndup(&psk_identity_hint, in tls_process_ske_psk_preamble()
2017 &s->session->psk_identity_hint)) { in tls_process_ske_psk_preamble()
2903 psklen = s->psk_client_callback(s, s->session->psk_identity_hint, in tls_construct_cke_psk_preamble()
Dstatem_srvr.c344 && s->cert->psk_identity_hint) in send_server_key_exchange()
2678 size_t len = (s->cert->psk_identity_hint == NULL) in tls_construct_server_key_exchange()
2679 ? 0 : strlen(s->cert->psk_identity_hint); in tls_construct_server_key_exchange()
2686 || !WPACKET_sub_memcpy_u16(pkt, s->cert->psk_identity_hint, in tls_construct_server_key_exchange()
/third_party/openssl/apps/
Ds_server.c1022 char *psk_identity_hint = NULL; in s_server_main() local
1404 psk_identity_hint = opt_arg(); in s_server_main()
2042 if (!SSL_CTX_use_psk_identity_hint(ctx, psk_identity_hint)) { in s_server_main()