diff options
author | Luca Deri <deri@ntop.org> | 2019-10-09 22:09:58 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2019-10-09 22:09:58 +0200 |
commit | 21bc84e837d1410c1cf8ab8817391a73c575aa4d (patch) | |
tree | 3dbd8672029494d930295d050d3b3849d1ca0328 /src/lib/ndpi_utils.c | |
parent | 203359ed7f0b001f8325ec8c9baf06077a375337 (diff) |
Modified API signatures for
- ndpi_ssl_version2str()
- ndpi_detection_giveup()
Diffstat (limited to 'src/lib/ndpi_utils.c')
-rw-r--r-- | src/lib/ndpi_utils.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c index afd634252..de268c191 100644 --- a/src/lib/ndpi_utils.c +++ b/src/lib/ndpi_utils.c @@ -710,9 +710,11 @@ int ndpi_has_human_readeable_string(struct ndpi_detection_module_struct *ndpi_st /* ********************************** */ -char* ndpi_ssl_version2str(u_int16_t version) { +char* ndpi_ssl_version2str(u_int16_t version, u_int8_t *unknown_tls_version) { static char v[12]; + *unknown_tls_version = 0; + switch(version) { case 0x0300: return("SSLv3"); case 0x0301: return("TLSv1"); @@ -727,6 +729,7 @@ char* ndpi_ssl_version2str(u_int16_t version) { if((version >= 0x7f00) && (version <= 0x7fff)) return("TLSv1.3 (draft)"); + *unknown_tls_version = 1; snprintf(v, sizeof(v), "TLS (%04X)", version); return(v); |