29#include "ove_config.h"
57#ifdef CONFIG_OVE_NET_TLS
116#ifdef OVE_HEAP_NET_TLS
136#ifndef CONFIG_OVE_NET_TLS
void ove_tls_close(ove_tls_t tls)
Shut down the TLS session (sends close_notify).
void ove_tls_deinit(ove_tls_t tls)
De-initialise a TLS session (frees internal resources, not storage).
int ove_tls_init(ove_tls_t *tls, ove_tls_storage_t *storage)
Initialise a TLS session from caller-supplied storage.
int ove_tls_handshake(ove_tls_t tls, ove_socket_t sock, const ove_tls_config_t *cfg)
Perform the TLS handshake over an established socket.
int ove_tls_send(ove_tls_t tls, const void *data, size_t len, size_t *sent)
Send data over an encrypted TLS session.
int ove_tls_create(ove_tls_t *tls)
Heap-allocate and initialise a TLS session.
void ove_tls_destroy(ove_tls_t tls)
Destroy a heap-allocated TLS session.
int ove_tls_recv(ove_tls_t tls, void *buf, size_t len, size_t *received)
Receive data from an encrypted TLS session.
struct ove_tls * ove_tls_t
Opaque handle for a TLS session.
Definition types.h:253
struct ove_socket * ove_socket_t
Opaque handle for a network socket.
Definition types.h:247
@ OVE_ERR_NOT_SUPPORTED
Definition types.h:98
TLS session configuration.
Definition net_tls.h:43
size_t client_key_len
Definition net_tls.h:51
const unsigned char * ca_cert
Definition net_tls.h:44
size_t ca_cert_len
Definition net_tls.h:45
int allow_insecure
Definition net_tls.h:52
size_t client_cert_len
Definition net_tls.h:49
const char * hostname
Definition net_tls.h:46
const unsigned char * client_cert
Definition net_tls.h:48
const unsigned char * client_key
Definition net_tls.h:50