aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authoremanuele-f <black.silver@hotmail.it>2019-09-17 18:43:11 +0200
committeremanuele-f <black.silver@hotmail.it>2019-09-17 18:43:11 +0200
commite152e687a551ac4a0f2ff621868a5a8cbe883f56 (patch)
tree335fa002c90494be9fce6804f8f9ec974414e5b9 /src/lib
parent10e560a5088e37520db9148c727f7e2f62c8ed68 (diff)
Fix notBefore/notAfter broken in previous commit
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/protocols/tls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/protocols/tls.c b/src/lib/protocols/tls.c
index 188011300..8a4d0c3ac 100644
--- a/src/lib/protocols/tls.c
+++ b/src/lib/protocols/tls.c
@@ -924,7 +924,7 @@ void getSSLorganization(struct ndpi_detection_module_struct *ndpi_struct,
utcDate[len] = '\0';
/* 141021000000Z */
- if(strptime(utcDate, "%d%m%y%H%M%SZ", &utc) != NULL) {
+ if(strptime(utcDate, "%y%m%d%H%M%SZ", &utc) != NULL) {
flow->protos.stun_ssl.ssl.notBefore = timegm(&utc);
#ifdef DEBUG_TLS
printf("[CERTIFICATE] notBefore %u [%s]\n",
@@ -955,7 +955,7 @@ void getSSLorganization(struct ndpi_detection_module_struct *ndpi_struct,
utcDate[len] = '\0';
/* 141021000000Z */
- if(strptime(utcDate, "%d%m%y%H%M%SZ", &utc) != NULL) {
+ if(strptime(utcDate, "%y%m%d%H%M%SZ", &utc) != NULL) {
flow->protos.stun_ssl.ssl.notAfter = timegm(&utc);
#ifdef DEBUG_TLS
printf("[CERTIFICATE] notAfter %u [%s]\n",