libcoap 4.3.5-develop-72190a8
Loading...
Searching...
No Matches
coap_notls.c File Reference

NoTLS specific interface functions. More...

+ Include dependency graph for coap_notls.c:

Go to the source code of this file.

Functions

int coap_tls_engine_configure (coap_str_const_t *conf_mem)
 Configure an ENGINE for a TLS library.
 
int coap_tls_engine_remove (void)
 Remove a previously configured ENGINE from a TLS library.
 
int coap_dtls_is_supported (void)
 Check whether DTLS is available.
 
int coap_tls_is_supported (void)
 Check whether TLS is available.
 
int coap_dtls_psk_is_supported (void)
 Check whether (D)TLS PSK is available.
 
int coap_dtls_pki_is_supported (void)
 Check whether (D)TLS PKI is available.
 
int coap_dtls_pkcs11_is_supported (void)
 Check whether (D)TLS PKCS11 is available.
 
int coap_dtls_rpk_is_supported (void)
 Check whether (D)TLS RPK is available.
 
int coap_dtls_cid_is_supported (void)
 Check whether (D)TLS CID is available.
 
coap_tls_version_tcoap_get_tls_library_version (void)
 Determine the type and version of the underlying (D)TLS library.
 
int coap_dtls_context_set_pki (coap_context_t *ctx COAP_UNUSED, const coap_dtls_pki_t *setup_data COAP_UNUSED, const coap_dtls_role_t role COAP_UNUSED)
 
int coap_dtls_context_set_pki_root_cas (coap_context_t *ctx COAP_UNUSED, const char *ca_file COAP_UNUSED, const char *ca_path COAP_UNUSED)
 
int coap_dtls_context_check_keys_enabled (coap_context_t *ctx COAP_UNUSED)
 
void coap_dtls_startup (void)
 Initialize the underlying (D)TLS Library layer.
 
void * coap_dtls_get_tls (const coap_session_t *c_session COAP_UNUSED, coap_tls_library_t *tls_lib)
 
void coap_dtls_shutdown (void)
 Close down the underlying (D)TLS Library layer.
 
void coap_dtls_set_log_level (coap_log_t level)
 Sets the (D)TLS logging level to the specified level.
 
coap_log_t coap_dtls_get_log_level (void)
 Get the current (D)TLS logging.
 
void * coap_dtls_new_context (coap_context_t *coap_context COAP_UNUSED)
 
void coap_dtls_free_context (void *handle COAP_UNUSED)
 
void coap_dtls_free_session (coap_session_t *coap_session COAP_UNUSED)
 
void coap_dtls_session_update_mtu (coap_session_t *session COAP_UNUSED)
 
ssize_t coap_dtls_send (coap_session_t *session COAP_UNUSED, const uint8_t *data COAP_UNUSED, size_t data_len COAP_UNUSED)
 
int coap_dtls_is_context_timeout (void)
 Check if timeout is handled per CoAP session or per CoAP context.
 
coap_tick_t coap_dtls_get_context_timeout (void *dtls_context COAP_UNUSED)
 
coap_tick_t coap_dtls_get_timeout (coap_session_t *session COAP_UNUSED, coap_tick_t now COAP_UNUSED)
 
int coap_dtls_handle_timeout (coap_session_t *session COAP_UNUSED)
 
int coap_dtls_receive (coap_session_t *session COAP_UNUSED, const uint8_t *data COAP_UNUSED, size_t data_len COAP_UNUSED)
 
unsigned int coap_dtls_get_overhead (coap_session_t *session COAP_UNUSED)
 
void coap_tls_free_session (coap_session_t *coap_session COAP_UNUSED)
 
ssize_t coap_tls_write (coap_session_t *session COAP_UNUSED, const uint8_t *data COAP_UNUSED, size_t data_len COAP_UNUSED)
 
ssize_t coap_tls_read (coap_session_t *session COAP_UNUSED, uint8_t *data COAP_UNUSED, size_t data_len COAP_UNUSED)
 

Variables

static coap_log_t dtls_log_level = COAP_LOG_EMERG
 

Detailed Description

NoTLS specific interface functions.

Definition in file coap_notls.c.

Function Documentation

◆ coap_dtls_context_check_keys_enabled()

int coap_dtls_context_check_keys_enabled ( coap_context_t *ctx  COAP_UNUSED)

Definition at line 142 of file coap_notls.c.

◆ coap_dtls_context_set_pki()

int coap_dtls_context_set_pki ( coap_context_t *ctx  COAP_UNUSED,
const coap_dtls_pki_t *setup_data  COAP_UNUSED,
const coap_dtls_role_t role  COAP_UNUSED 
)

Definition at line 108 of file coap_notls.c.

◆ coap_dtls_context_set_pki_root_cas()

int coap_dtls_context_set_pki_root_cas ( coap_context_t *ctx  COAP_UNUSED,
const char *ca_file  COAP_UNUSED,
const char *ca_path  COAP_UNUSED 
)

Definition at line 116 of file coap_notls.c.

+ Here is the caller graph for this function:

◆ coap_dtls_free_context()

void coap_dtls_free_context ( void *handle  COAP_UNUSED)

Definition at line 181 of file coap_notls.c.

+ Here is the caller graph for this function:

◆ coap_dtls_free_session()

void coap_dtls_free_session ( coap_session_t *coap_session  COAP_UNUSED)

Definition at line 199 of file coap_notls.c.

+ Here is the caller graph for this function:

◆ coap_dtls_get_context_timeout()

coap_tick_t coap_dtls_get_context_timeout ( void *dtls_context  COAP_UNUSED)

Definition at line 219 of file coap_notls.c.

+ Here is the caller graph for this function:

◆ coap_dtls_get_overhead()

unsigned int coap_dtls_get_overhead ( coap_session_t *session  COAP_UNUSED)

Definition at line 256 of file coap_notls.c.

+ Here is the caller graph for this function:

◆ coap_dtls_get_timeout()

coap_tick_t coap_dtls_get_timeout ( coap_session_t *session  COAP_UNUSED,
coap_tick_t now  COAP_UNUSED 
)

Definition at line 224 of file coap_notls.c.

+ Here is the caller graph for this function:

◆ coap_dtls_get_tls()

void * coap_dtls_get_tls ( const coap_session_t *c_session  COAP_UNUSED,
coap_tls_library_t tls_lib 
)

Definition at line 153 of file coap_notls.c.

+ Here is the caller graph for this function:

◆ coap_dtls_handle_timeout()

int coap_dtls_handle_timeout ( coap_session_t *session  COAP_UNUSED)

Definition at line 233 of file coap_notls.c.

+ Here is the caller graph for this function:

◆ coap_dtls_new_context()

void * coap_dtls_new_context ( coap_context_t *coap_context  COAP_UNUSED)

Definition at line 176 of file coap_notls.c.

+ Here is the caller graph for this function:

◆ coap_dtls_receive()

int coap_dtls_receive ( coap_session_t *session  COAP_UNUSED,
const uint8_t *data  COAP_UNUSED,
size_t data_len  COAP_UNUSED 
)

Definition at line 238 of file coap_notls.c.

+ Here is the caller graph for this function:

◆ coap_dtls_send()

ssize_t coap_dtls_send ( coap_session_t *session  COAP_UNUSED,
const uint8_t *data  COAP_UNUSED,
size_t data_len  COAP_UNUSED 
)

Definition at line 207 of file coap_notls.c.

◆ coap_dtls_session_update_mtu()

void coap_dtls_session_update_mtu ( coap_session_t *session  COAP_UNUSED)

Definition at line 203 of file coap_notls.c.

◆ coap_tls_free_session()

void coap_tls_free_session ( coap_session_t *coap_session  COAP_UNUSED)

Definition at line 275 of file coap_notls.c.

+ Here is the caller graph for this function:

◆ coap_tls_read()

ssize_t coap_tls_read ( coap_session_t *session  COAP_UNUSED,
uint8_t *data  COAP_UNUSED,
size_t data_len  COAP_UNUSED 
)

Definition at line 296 of file coap_notls.c.

◆ coap_tls_write()

ssize_t coap_tls_write ( coap_session_t *session  COAP_UNUSED,
const uint8_t *data  COAP_UNUSED,
size_t data_len  COAP_UNUSED 
)

Definition at line 284 of file coap_notls.c.

Variable Documentation

◆ dtls_log_level

coap_log_t dtls_log_level = COAP_LOG_EMERG
static

Definition at line 146 of file coap_notls.c.