28#include "ove_config.h"
47#include "ove/storage.h"
49#ifdef CONFIG_OVE_NET_TLS
58int ove_tls_init(
ove_tls_t *tls, ove_tls_storage_t *storage);
87int ove_tls_send(
ove_tls_t tls,
const void *data,
size_t len,
99int ove_tls_recv(
ove_tls_t tls,
void *buf,
size_t len,
111#ifdef OVE_HEAP_NET_TLS
131#ifndef CONFIG_OVE_NET_TLS
132typedef struct { uint8_t _unused; } ove_tls_storage_t;
136static inline void ove_tls_deinit(
ove_tls_t tls) { (void)tls; }
138static inline int ove_tls_send(
ove_tls_t tls,
const void *data,
size_t len,
size_t *sent) { (void)tls; (void)data; (void)len; (void)sent;
return OVE_ERR_NOT_SUPPORTED; }
139static inline int ove_tls_recv(
ove_tls_t tls,
void *buf,
size_t len,
size_t *received) { (void)tls; (void)buf; (void)len; (void)received;
return OVE_ERR_NOT_SUPPORTED; }
140static inline void ove_tls_close(
ove_tls_t tls) { (void)tls; }
#define OVE_ERR_NOT_SUPPORTED
The requested feature is not supported by the active backend.
Definition types.h:38
struct ove_tls * ove_tls_t
Opaque handle for a TLS session.
Definition types.h:127
struct ove_socket * ove_socket_t
Opaque handle for a network socket.
Definition types.h:121
TLS session configuration.
Definition net_tls.h:37
size_t client_key_len
Definition net_tls.h:44
const unsigned char * ca_cert
Definition net_tls.h:38
size_t ca_cert_len
Definition net_tls.h:39
size_t client_cert_len
Definition net_tls.h:42
const char * hostname
Definition net_tls.h:40
const unsigned char * client_cert
Definition net_tls.h:41
const unsigned char * client_key
Definition net_tls.h:43