diff options
author | Luca Deri <deri@ntop.org> | 2019-09-10 22:15:23 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2019-09-10 22:15:23 +0200 |
commit | 0f9107bef348f853c01668048d386f9445fe851a (patch) | |
tree | 8176c46767500bc859a2454904518274867e2190 /src | |
parent | 068611e8ba9317fecf40bd3e6e2a1b578944d3ea (diff) |
Fixed timezone conversion
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/protocols/tls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/protocols/tls.c b/src/lib/protocols/tls.c index 6245a7ce7..3e0e295c5 100644 --- a/src/lib/protocols/tls.c +++ b/src/lib/protocols/tls.c @@ -755,7 +755,7 @@ void getSSLorganization(struct ndpi_detection_module_struct *ndpi_struct, #ifdef DEBUG_TLS printf("[CERTIFICATE] notBefore %u [%s]\n", mktime(&utc), utcDate); #endif - flow->protos.stun_ssl.ssl.notBefore = mktime(&utc); + flow->protos.stun_ssl.ssl.notBefore = timegm(&utc); } } @@ -784,7 +784,7 @@ void getSSLorganization(struct ndpi_detection_module_struct *ndpi_struct, #ifdef DEBUG_TLS printf("[CERTIFICATE] notAfter %u [%s]\n", mktime(&utc), utcDate); #endif - flow->protos.stun_ssl.ssl.notAfter = mktime(&utc); + flow->protos.stun_ssl.ssl.notAfter = timegm(&utc); } } } |