mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-16 04:54:55 +03:00
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:
1 parent
7d14b745c9
commit
30794440af
1 file changed
+8
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user