summaryrefslogtreecommitdiff
path: root/lib/ext
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2018-11-14 13:56:52 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2018-11-15 13:48:37 +0100
commite1cd3313acb4c15ffc0f009c89a859e1f9b3bed4 (patch)
tree0901e4a012cbcc0ae3c59975914b46b1b4443da2 /lib/ext
parent048dc3177c0f542c66e55472e4d5db1c1d2f3e0e (diff)
downloadgnutls-e1cd3313acb4c15ffc0f009c89a859e1f9b3bed4.tar.gz
anti_replay: moved new add function into anti_replay structure
The new function was not sharing anything with the existing gnutls_db_* backend, and moving it to anti_replay structure is more clean and allows for deviations from the old API conventions (e.g., now we can pass pointers for efficiency and pass the expiration time as part of the call). Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/ext')
-rw-r--r--lib/ext/pre_shared_key.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ext/pre_shared_key.c b/lib/ext/pre_shared_key.c
index bc7fc8aa95..c42bd1646b 100644
--- a/lib/ext/pre_shared_key.c
+++ b/lib/ext/pre_shared_key.c
@@ -621,7 +621,7 @@ static int server_recv_params(gnutls_session_t session,
} else {
if (session->internals.hsk_flags & HSK_EARLY_DATA_ACCEPTED) {
if (session->internals.anti_replay) {
- ret = _gnutls_anti_replay_check(session,
+ ret = _gnutls_anti_replay_check(session->internals.anti_replay,
ticket_age,
&ticket_creation_time,
&binder_recvd);