From 30794440af5fbccb39d55d445a971b63b55333b6 Mon Sep 17 00:00:00 2001 From: Jon Shallow Date: Sat, 10 Feb 2018 19:38:08 +0000 Subject: [PATCH] coap_tinydtls.c: Add in coap_get_tls_library_version() function Add in coap_get_tls_library_version() for determining TLS build base + version --- src/coap_tinydtls.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/coap_tinydtls.c b/src/coap_tinydtls.c index 825f68e4..07064a4c 100644 --- a/src/coap_tinydtls.c +++ b/src/coap_tinydtls.c @@ -444,6 +444,14 @@ int coap_tls_is_supported(void) { return 0; } +coap_tls_version_t * +coap_get_tls_library_version(void) { + static coap_tls_version_t version; + version.version = DTLS_VERSION; + version.type = COAP_TLS_LIBRARY_TINYDTLS; + return &version; +} + void *coap_tls_new_client_session(coap_session_t *session UNUSED, int *connected UNUSED) { return NULL; }