Home
last modified time | relevance | path

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

/freebsd/crypto/openssl/ssl/
H A Dssl_asn1.c35 ASN1_OCTET_STRING *psk_identity_hint; member
63 ASN1_EXP_OPT(SSL_SESSION_ASN1, psk_identity_hint, ASN1_OCTET_STRING, 7),
124 ASN1_OCTET_STRING psk_identity, psk_identity_hint; in i2d_SSL_SESSION() local
182 ssl_session_sinit(&as.psk_identity_hint, &psk_identity_hint, in i2d_SSL_SESSION()
183 in->psk_identity_hint); in i2d_SSL_SESSION()
330 if (!ssl_session_strndup(&ret->psk_identity_hint, as->psk_identity_hint)) in d2i_SSL_SESSION()
H A Dssl_txt.c92 (bp, "%s", x->psk_identity_hint ? x->psk_identity_hint : "None") <= 0) in SSL_SESSION_print()
H A Dssl_sess.c190 dest->psk_identity_hint = NULL; in ssl_session_dup_intern()
233 if (src->psk_identity_hint) { in ssl_session_dup_intern()
234 dest->psk_identity_hint = OPENSSL_strdup(src->psk_identity_hint); in ssl_session_dup_intern()
235 if (dest->psk_identity_hint == NULL) { in ssl_session_dup_intern()
882 OPENSSL_free(ss->psk_identity_hint); in SSL_SESSION_free()
H A Dssl_cert.c198 if (cert->psk_identity_hint) { in ssl_cert_dup()
199 ret->psk_identity_hint = OPENSSL_strdup(cert->psk_identity_hint); in ssl_cert_dup()
200 if (ret->psk_identity_hint == NULL) in ssl_cert_dup()
255 OPENSSL_free(c->psk_identity_hint); in ssl_cert_free()
H A Dssl_lib.c4608 OPENSSL_free(ctx->cert->psk_identity_hint); in SSL_CTX_use_psk_identity_hint()
4610 ctx->cert->psk_identity_hint = OPENSSL_strdup(identity_hint); in SSL_CTX_use_psk_identity_hint()
4611 if (ctx->cert->psk_identity_hint == NULL) in SSL_CTX_use_psk_identity_hint()
4614 ctx->cert->psk_identity_hint = NULL; in SSL_CTX_use_psk_identity_hint()
4627 OPENSSL_free(s->cert->psk_identity_hint); in SSL_use_psk_identity_hint()
4629 s->cert->psk_identity_hint = OPENSSL_strdup(identity_hint); in SSL_use_psk_identity_hint()
4630 if (s->cert->psk_identity_hint == NULL) in SSL_use_psk_identity_hint()
4633 s->cert->psk_identity_hint = NULL; in SSL_use_psk_identity_hint()
4641 return s->session->psk_identity_hint; in SSL_get_psk_identity_hint()
H A Dssl_local.h577 char *psk_identity_hint; member
2065 char *psk_identity_hint; member
/freebsd/crypto/openssl/ssl/statem/
H A Dstatem_clnt.c1944 PACKET psk_identity_hint; in tls_process_ske_psk_preamble() local
1948 if (!PACKET_get_length_prefixed_2(pkt, &psk_identity_hint)) { in tls_process_ske_psk_preamble()
1959 if (PACKET_remaining(&psk_identity_hint) > PSK_MAX_IDENTITY_LEN) { in tls_process_ske_psk_preamble()
1964 if (PACKET_remaining(&psk_identity_hint) == 0) { in tls_process_ske_psk_preamble()
1965 OPENSSL_free(s->session->psk_identity_hint); in tls_process_ske_psk_preamble()
1966 s->session->psk_identity_hint = NULL; in tls_process_ske_psk_preamble()
1967 } else if (!PACKET_strndup(&psk_identity_hint, in tls_process_ske_psk_preamble()
1968 &s->session->psk_identity_hint)) { in tls_process_ske_psk_preamble()
2771 psklen = s->psk_client_callback(s, s->session->psk_identity_hint, in tls_construct_cke_psk_preamble()
H A Dstatem_srvr.c343 && s->cert->psk_identity_hint) in send_server_key_exchange()
2580 size_t len = (s->cert->psk_identity_hint == NULL) in tls_construct_server_key_exchange()
2581 ? 0 : strlen(s->cert->psk_identity_hint); in tls_construct_server_key_exchange()
2588 || !WPACKET_sub_memcpy_u16(pkt, s->cert->psk_identity_hint, in tls_construct_server_key_exchange()
/freebsd/crypto/openssl/apps/
H A Ds_server.c1026 char *psk_identity_hint = NULL; in s_server_main() local
1435 psk_identity_hint = opt_arg(); in s_server_main()
2126 if (psk_identity_hint != NULL) { in s_server_main()
2130 if (!SSL_CTX_use_psk_identity_hint(ctx, psk_identity_hint)) { in s_server_main()