diff --git a/src/coap_tinydtls.c b/src/coap_tinydtls.c index 825f68e4..8352cdfe 100644 --- a/src/coap_tinydtls.c +++ b/src/coap_tinydtls.c @@ -11,10 +11,10 @@ #ifdef HAVE_LIBTINYDTLS +#include "net.h" #include "address.h" #include "debug.h" #include "mem.h" -#include "coap_dtls.h" #include #include @@ -444,6 +444,25 @@ int coap_tls_is_supported(void) { return 0; } +int coap_dtls_context_set_pki( coap_context_t *ctx UNUSED, + coap_dtls_security_setup_t setup_callback UNUSED, + coap_dtls_pki_t* setup_data UNUSED +) { + return 0; +} + +int coap_dtls_context_set_psk(coap_context_t *ctx UNUSED, + const char *hint UNUSED, + const uint8_t *key UNUSED, size_t key_len UNUSED +) { + return 1; +} + +int coap_dtls_context_check_keys_enabled(coap_context_t *ctx) +{ + return 1; +} + void *coap_tls_new_client_session(coap_session_t *session UNUSED, int *connected UNUSED) { return NULL; }