10 #include "coap_config.h" 12 #if !defined(HAVE_LIBTINYDTLS) && !defined(HAVE_OPENSSL) && !defined(HAVE_LIBGNUTLS) 17 #define UNUSED __attribute__((unused)) 50 const char *ca_file UNUSED,
51 const char *ca_path UNUSED
58 const char *hint UNUSED,
111 size_t data_len UNUSED
134 size_t data_len UNUSED
142 size_t data_len UNUSED
164 size_t data_len UNUSED
171 size_t data_len UNUSED
184 #pragma GCC diagnostic ignored "-Wunused-function" 186 static inline void dummy(
void) {
void coap_dtls_set_log_level(int level)
Sets the (D)TLS logging level to the specified level.
int coap_dtls_hello(coap_session_t *session UNUSED, const uint8_t *data UNUSED, size_t data_len UNUSED)
void coap_tls_free_session(coap_session_t *coap_session UNUSED)
int coap_dtls_receive(coap_session_t *session UNUSED, const uint8_t *data UNUSED, size_t data_len UNUSED)
int coap_dtls_context_check_keys_enabled(coap_context_t *ctx UNUSED)
ssize_t coap_tls_read(coap_session_t *session UNUSED, uint8_t *data UNUSED, size_t data_len UNUSED)
int coap_dtls_get_log_level(void)
Get the current (D)TLS logging.
void * coap_dtls_new_client_session(coap_session_t *session UNUSED)
int coap_dtls_is_supported(void)
Check whether DTLS is available.
void coap_dtls_free_context(void *handle UNUSED)
int coap_dtls_context_set_pki(coap_context_t *ctx UNUSED, coap_dtls_pki_t *setup_data UNUSED, coap_dtls_role_t role UNUSED)
void * coap_tls_new_server_session(coap_session_t *session UNUSED, int *connected UNUSED)
ssize_t coap_tls_write(coap_session_t *session UNUSED, const uint8_t *data UNUSED, size_t data_len UNUSED)
uint64_t version
(D)TLS runtime Library Version
void * coap_tls_new_client_session(coap_session_t *session UNUSED, int *connected UNUSED)
int coap_tls_is_supported(void)
Check whether TLS is available.
coap_tls_version_t * coap_get_tls_library_version(void)
Determine the type and version of the underlying (D)TLS library.
uint64_t coap_tick_t
This data type represents internal timer ticks with COAP_TICKS_PER_SECOND resolution.
COAP_STATIC_INLINE void dummy(void)
unsigned int coap_dtls_get_overhead(coap_session_t *session UNUSED)
static int dtls_log_level
The structure used for returning the underlying (D)TLS library information.
int coap_dtls_context_set_psk(coap_context_t *ctx UNUSED, const char *hint UNUSED, coap_dtls_role_t role UNUSED)
void coap_dtls_free_session(coap_session_t *coap_session UNUSED)
void * coap_dtls_new_server_session(coap_session_t *session UNUSED)
The structure used for defining the PKI setup data to be used.
int coap_dtls_context_set_pki_root_cas(struct coap_context_t *ctx UNUSED, const char *ca_file UNUSED, const char *ca_path UNUSED)
int coap_dtls_send(coap_session_t *session UNUSED, const uint8_t *data UNUSED, size_t data_len UNUSED)
coap_tick_t coap_dtls_get_timeout(coap_session_t *session UNUSED)
#define COAP_TLS_LIBRARY_NOTLS
No DTLS library.
void coap_dtls_handle_timeout(coap_session_t *session UNUSED)
void coap_dtls_startup(void)
Initialize the underlying (D)TLS Library layer.
coap_tick_t coap_dtls_get_context_timeout(void *dtls_context UNUSED)
void coap_dtls_session_update_mtu(coap_session_t *session UNUSED)
void * coap_dtls_new_context(struct coap_context_t *coap_context UNUSED)
The CoAP stack's global state is stored in a coap_context_t object.
int coap_dtls_is_context_timeout(void)
Check if timeout is handled per CoAP session or per CoAP context.