Searched refs:pskid (Results 1 – 7 of 7) sorted by relevance
/openssl/crypto/hpke/ |
H A D | hpke.c | 67 char *pskid; /* PSK stuff */ member 695 if (ctx->psk == NULL || ctx->psklen == 0 || ctx->pskid == NULL) { in hpke_do_middle() 705 pskidlen = (ctx->psk == NULL ? 0 : strlen(ctx->pskid)); in hpke_do_middle() 856 OPENSSL_free(ctx->pskid); in OSSL_HPKE_CTX_free() 870 const char *pskid, in OSSL_HPKE_CTX_set1_psk() argument 873 if (ctx == NULL || pskid == NULL || psk == NULL || psklen == 0) { in OSSL_HPKE_CTX_set1_psk() 885 if (strlen(pskid) > OSSL_HPKE_MAX_PARMLEN) { in OSSL_HPKE_CTX_set1_psk() 889 if (strlen(pskid) == 0) { in OSSL_HPKE_CTX_set1_psk() 904 OPENSSL_free(ctx->pskid); in OSSL_HPKE_CTX_set1_psk() 905 ctx->pskid = OPENSSL_strdup(pskid); in OSSL_HPKE_CTX_set1_psk() [all …]
|
/openssl/include/openssl/ |
H A D | hpke.h | 145 const char *pskid,
|
/openssl/test/ |
H A D | hpke_test.c | 46 const char *pskid; /* want terminating NUL here */ member 148 if (!TEST_true(OSSL_HPKE_CTX_set1_psk(sealctx, base->pskid, in do_testhpke() 179 if (!TEST_true(base->pskid != NULL && base->psk != NULL in do_testhpke() 182 if (!TEST_true(OSSL_HPKE_CTX_set1_psk(openctx, base->pskid, in do_testhpke() 264 static const unsigned char pskid[] = { variable 388 psk, sizeof(psk), (char *) pskid in x25519kdfsha256_hkdfsha256_aes128gcm_psk_test()
|
H A D | quicapitest.c | 1150 static const char *pskid = "Identity"; variable 1164 *id = (const unsigned char *)pskid; in use_session_cb() 1165 *idlen = strlen(pskid); in use_session_cb() 1179 if (strlen(pskid) != identity_len in find_session_cb() 1180 || strncmp(pskid, (const char *)identity, identity_len) != 0) in find_session_cb()
|
H A D | sslapitest.c | 71 static const char *pskid = "Identity"; variable 2687 srvid = pskid; in test_psk_tickets() 3282 *id = (const unsigned char *)pskid; in use_session_cb() 3283 *idlen = strlen(pskid); in use_session_cb() 3298 if (strlen(pskid) + 1 > max_id_len) in psk_client_cb() 3312 strncpy(id, pskid, max_id_len); in psk_client_cb() 3444 srvid = pskid; in setupearly_data_test() 5557 srvid = pskid; in test_tls13_psk()
|
/openssl/doc/man3/ |
H A D | OSSL_HPKE_CTX_new.pod | 61 const char *pskid, 220 I<labellen> parameters, and for the length of the string I<pskid> for HPKE 372 OSSL_HPKE_CTX_set1_psk() sets the PSK identifier I<pskid> string, and PSK buffer 375 As per RFC9180, if required, both I<psk> and I<pskid> must be set to non-NULL values.
|
/openssl/ssl/statem/ |
H A D | extensions_srvr.c | 1073 char *pskid = NULL; in tls_parse_ctos_psk() local 1077 if (!PACKET_strndup(&identity, &pskid)) { in tls_parse_ctos_psk() 1081 pskdatalen = s->psk_server_callback(ussl, pskid, pskdata, in tls_parse_ctos_psk() 1083 OPENSSL_free(pskid); in tls_parse_ctos_psk()
|
Completed in 59 milliseconds