Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
tls_credentials.h File Reference

TLS credentials management. More...

Go to the source code of this file.

Typedefs

typedef int sec_tag_t
 

Enumerations

enum  tls_credential_type {
  TLS_CREDENTIAL_NONE , TLS_CREDENTIAL_CA_CERTIFICATE , TLS_CREDENTIAL_SERVER_CERTIFICATE , TLS_CREDENTIAL_PRIVATE_KEY ,
  TLS_CREDENTIAL_PSK , TLS_CREDENTIAL_PSK_ID
}
 

Functions

int tls_credential_add (sec_tag_t tag, enum tls_credential_type type, const void *cred, size_t credlen)
 Add a TLS credential. More...
 
int tls_credential_get (sec_tag_t tag, enum tls_credential_type type, void *cred, size_t *credlen)
 Get a TLS credential. More...
 
int tls_credential_delete (sec_tag_t tag, enum tls_credential_type type)
 Delete a TLS credential. More...
 

Detailed Description

TLS credentials management.

An API for applications to configure TLS credentials.