Home
last modified time | relevance | path

Searched refs:credlen (Results 1 – 4 of 4) sorted by relevance

/Zephyr-latest/tests/net/lib/tls_credentials/src/
Dmain.c67 size_t credlen; in test_credential_get() local
72 credlen = sizeof(cred); in test_credential_get()
74 cred, &credlen); in test_credential_get()
79 zassert_equal(credlen, sizeof(test_server_key), in test_credential_get()
83 credlen = sizeof(cred); in test_credential_get()
85 cred, &credlen); in test_credential_get()
89 credlen = sizeof(test_server_cert) - 1; in test_credential_get()
91 cred, &credlen); in test_credential_get()
153 size_t credlen = sizeof(cred); in test_credential_delete() local
165 cred, &credlen); in test_credential_delete()
/Zephyr-latest/subsys/net/lib/tls_credentials/
Dtls_credentials.c125 const void *cred, size_t credlen) in tls_credential_add() argument
147 credential->len = credlen; in tls_credential_add()
156 void *cred, size_t *credlen) in tls_credential_get() argument
166 *credlen = 0; in tls_credential_get()
170 if (credential->len > *credlen) { in tls_credential_get()
177 *credlen = credential->len; in tls_credential_get()
181 *credlen = credential->len; in tls_credential_get()
Dtls_credentials_trusted.c327 const void *cred, size_t credlen) in tls_credential_add() argument
356 status = psa_ps_set(uid, credlen, cred, create_flags); in tls_credential_add()
371 void *cred, size_t *credlen) in tls_credential_get() argument
402 if (info.size > *credlen) { in tls_credential_get()
407 status = psa_ps_get(uid, 0, info.size, cred, credlen); in tls_credential_get()
/Zephyr-latest/include/zephyr/net/
Dtls_credentials.h93 const void *cred, size_t credlen);
113 void *cred, size_t *credlen);