summaryrefslogtreecommitdiff
path: root/tests/common-cert-key-exchange.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-09-15 16:21:02 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2017-09-19 08:12:48 +0000
commitc070a9e03b25a1faf72cc9e42282d98431ba8ebf (patch)
treebc19f9ad80f446b4b67d8a4fe8170e03729ce535 /tests/common-cert-key-exchange.h
parent0b4ef99063e2895341c40b1f000b8d09e5a9f4e1 (diff)
downloadgnutls-c070a9e03b25a1faf72cc9e42282d98431ba8ebf.tar.gz
tests: added reproducer for DTLS infinite loop
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'tests/common-cert-key-exchange.h')
-rw-r--r--tests/common-cert-key-exchange.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/common-cert-key-exchange.h b/tests/common-cert-key-exchange.h
index d0740cc39e..beb4ea575f 100644
--- a/tests/common-cert-key-exchange.h
+++ b/tests/common-cert-key-exchange.h
@@ -54,11 +54,14 @@ void try_with_key(const char *name, const char *client_prio, gnutls_kx_algorithm
dtls_try_with_key(name, client_prio, client_kx, server_sign_algo, client_sign_algo, \
&server_ca3_localhost_cert, &server_ca3_key, &cli_ca3_cert, &cli_ca3_key, client_cert)
-void dtls_try_with_key(const char *name, const char *client_prio, gnutls_kx_algorithm_t client_kx,
+#define dtls_try_with_key(name, client_prio, client_kx, server_sign_algo, client_sign_algo, serv_cert, serv_key, cli_cert, cli_key, client_cert) \
+ dtls_try_with_key_mtu(name, client_prio, client_kx, server_sign_algo, client_sign_algo, serv_cert, serv_key, cli_cert, cli_key, client_cert, 0)
+
+void dtls_try_with_key_mtu(const char *name, const char *client_prio, gnutls_kx_algorithm_t client_kx,
gnutls_sign_algorithm_t server_sign_algo,
gnutls_sign_algorithm_t client_sign_algo,
const gnutls_datum_t *serv_cert,
const gnutls_datum_t *serv_key,
const gnutls_datum_t *cli_cert,
const gnutls_datum_t *cli_key,
- unsigned client_cert);
+ unsigned client_cert, unsigned mtu);