diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2019-03-01 11:15:47 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2019-03-20 10:52:19 +0100 |
commit | c6754cf52ecfb655f04707cef0d4c2d41e1c9587 (patch) | |
tree | 57bf3acab86116da136087c9e936087b5fd5d286 /tests/tls13/post-handshake-with-cert-ticket.c | |
parent | f82ffe2b3031072ad1bfdf589e945263a1696e3f (diff) | |
download | gnutls-c6754cf52ecfb655f04707cef0d4c2d41e1c9587.tar.gz |
handshake: increase the default number of tickets we send to 2tmp-increase-nr-of-tickets
This makes it easier for clients which perform multiple connections
to the server to use the tickets sent by a default server. That's
because 2 tickets allow for 2 new connections (if one is using each
ticket once as recommended), which in turn lead to 4 new and so on.
Resolves: #596
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'tests/tls13/post-handshake-with-cert-ticket.c')
-rw-r--r-- | tests/tls13/post-handshake-with-cert-ticket.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/tls13/post-handshake-with-cert-ticket.c b/tests/tls13/post-handshake-with-cert-ticket.c index 05cb5c88e9..bcf331e0f0 100644 --- a/tests/tls13/post-handshake-with-cert-ticket.c +++ b/tests/tls13/post-handshake-with-cert-ticket.c @@ -47,6 +47,7 @@ int main() #include <signal.h> #include <assert.h> +#include "../lib/handshake-defs.h" #include "cert-common.h" #include "utils.h" @@ -75,7 +76,7 @@ static int ticket_callback(gnutls_session_t session, unsigned int htype, assert(htype == GNUTLS_HANDSHAKE_NEW_SESSION_TICKET); counter++; - if (counter == 1) /* ignore the first ticket */ + if (counter <= TLS13_TICKETS_TO_SEND) /* ignore the default tickets sent */ return 0; d = gnutls_session_get_ptr(session); |