13#ifndef ZEPHYR_INCLUDE_NET_TLS_CREDENTIALS_H_
14#define ZEPHYR_INCLUDE_NET_TLS_CREDENTIALS_H_
91 const void *cred,
size_t credlen);
110 void *cred,
size_t *credlen);
tls_credential_type
TLS credential types.
Definition: tls_credentials.h:28
int tls_credential_add(sec_tag_t tag, enum tls_credential_type type, const void *cred, size_t credlen)
Add a TLS credential.
int tls_credential_delete(sec_tag_t tag, enum tls_credential_type type)
Delete a TLS credential.
int sec_tag_t
Secure tag, a reference to TLS credential.
Definition: tls_credentials.h:72
int tls_credential_get(sec_tag_t tag, enum tls_credential_type type, void *cred, size_t *credlen)
Get a TLS credential.
@ TLS_CREDENTIAL_PSK_ID
Pre-shared key identity.
Definition: tls_credentials.h:56
@ TLS_CREDENTIAL_PRIVATE_KEY
Private key.
Definition: tls_credentials.h:46
@ TLS_CREDENTIAL_SERVER_CERTIFICATE
A public server certificate.
Definition: tls_credentials.h:41
@ TLS_CREDENTIAL_NONE
Unspecified credential.
Definition: tls_credentials.h:30
@ TLS_CREDENTIAL_PSK
Pre-shared key.
Definition: tls_credentials.h:51
@ TLS_CREDENTIAL_CA_CERTIFICATE
A trusted CA certificate.
Definition: tls_credentials.h:35