Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
tls_credentials.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2018 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
13#ifndef ZEPHYR_INCLUDE_NET_TLS_CREDENTIALS_H_
14#define ZEPHYR_INCLUDE_NET_TLS_CREDENTIALS_H_
15
23#ifdef __cplusplus
24extern "C" {
25#endif
26
31
36
42
47
52
57};
58
70typedef int sec_tag_t;
71
89 const void *cred, size_t credlen);
90
108 void *cred, size_t *credlen);
109
124
125#ifdef __cplusplus
126}
127#endif
128
133#endif /* ZEPHYR_INCLUDE_NET_TLS_CREDENTIALS_H_ */
tls_credential_type
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
Definition: tls_credentials.h:70
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
Definition: tls_credentials.h:56
@ TLS_CREDENTIAL_PRIVATE_KEY
Definition: tls_credentials.h:46
@ TLS_CREDENTIAL_SERVER_CERTIFICATE
Definition: tls_credentials.h:41
@ TLS_CREDENTIAL_NONE
Definition: tls_credentials.h:30
@ TLS_CREDENTIAL_PSK
Definition: tls_credentials.h:51
@ TLS_CREDENTIAL_CA_CERTIFICATE
Definition: tls_credentials.h:35
static const char * tag(void)
Definition: main.c:27