diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-09-27 08:58:26 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2018-02-19 15:29:34 +0100 |
commit | 8712b8b1d29da110365badb4cf5f2d27802c5fc5 (patch) | |
tree | 9c65b26f3aed40aca93b4d68bbacfb49e5bc4de2 /tests/tls-session-supplemental.c | |
parent | 7b9462d7b0b4bac2e1abf2716856cb4fdb1f688c (diff) | |
download | gnutls-8712b8b1d29da110365badb4cf5f2d27802c5fc5.tar.gz |
tests: improved tls-session-supplemental
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'tests/tls-session-supplemental.c')
-rw-r--r-- | tests/tls-session-supplemental.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/tls-session-supplemental.c b/tests/tls-session-supplemental.c index c6f774f205..330bfaea34 100644 --- a/tests/tls-session-supplemental.c +++ b/tests/tls-session-supplemental.c @@ -135,6 +135,7 @@ static void client(int sd) /* Initialize TLS session */ gnutls_init(&session, GNUTLS_CLIENT); + gnutls_handshake_set_timeout(session, 20 * 1000); /* Use default priorities */ gnutls_priority_set_direct(session, "PERFORMANCE:+ANON-ECDH:+ANON-DH", @@ -248,6 +249,7 @@ static void server(int sd) GNUTLS_X509_FMT_PEM); gnutls_init(&session, GNUTLS_SERVER); + gnutls_handshake_set_timeout(session, 20 * 1000); /* avoid calling all the priority functions, since the defaults * are adequate. |