diff options
author | Daiki Ueno <dueno@redhat.com> | 2018-10-25 12:32:52 +0200 |
---|---|---|
committer | Daiki Ueno <dueno@redhat.com> | 2018-10-26 10:53:55 +0200 |
commit | e7a76d1e7315c886de0959dd629e5bb85de6b0b0 (patch) | |
tree | ecf3d7d9648b49dba8c3891a590650d2744fd4ba /lib/gnutls_int.h | |
parent | 0d1e3f90c3c90f6b6eeacc66a2b9a8eabf720985 (diff) | |
download | gnutls-e7a76d1e7315c886de0959dd629e5bb85de6b0b0.tar.gz |
tls13/session_ticket: calculate ticket_age in milliseconds
Previously we calculated ticket age from the current wall clock in
seconds, multiplying by 1000. This is conceptually wrong, because
ticket age is designed to be in milliseconds.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Diffstat (limited to 'lib/gnutls_int.h')
-rw-r--r-- | lib/gnutls_int.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gnutls_int.h b/lib/gnutls_int.h index 576eaa6786..2eff31caff 100644 --- a/lib/gnutls_int.h +++ b/lib/gnutls_int.h @@ -1017,7 +1017,7 @@ typedef struct gnutls_dh_params_int { /* TLS 1.3 session ticket */ typedef struct { - time_t timestamp; + struct timespec arrival_time; uint32_t lifetime; uint32_t age_add; uint8_t nonce[255]; |