coap_tinydtls.c: Add in coap_get_tls_library_version() function

Add in coap_get_tls_library_version() for determining TLS build base + version
This commit is contained in:
Jon Shallow committed 2018-02-10 19:38:08 +00:00
1 parent 7d14b745c9
commit 30794440af
1 file changed
+8
+8
View File
@@ -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;
}