summaryrefslogtreecommitdiff
path: root/tests/mini-dtls-lowmtu.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2015-02-21 11:35:04 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2015-02-21 11:36:46 +0100
commitb7f8b259f84e45835d384a198f80325731c31bbc (patch)
tree49d57466415a4cf1ad862a99b53b0a198d90d2bb /tests/mini-dtls-lowmtu.c
parente688ded5890fb241e818681dbfbd9c61a86072f6 (diff)
downloadgnutls-b7f8b259f84e45835d384a198f80325731c31bbc.tar.gz
tests: require DTLS 1.2 when using GCM
Diffstat (limited to 'tests/mini-dtls-lowmtu.c')
-rw-r--r--tests/mini-dtls-lowmtu.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/mini-dtls-lowmtu.c b/tests/mini-dtls-lowmtu.c
index f0add723b1..9077d30e01 100644
--- a/tests/mini-dtls-lowmtu.c
+++ b/tests/mini-dtls-lowmtu.c
@@ -148,8 +148,7 @@ static void client(int fd, const char *prio)
while (ret < 0 && gnutls_error_is_fatal(ret) == 0);
if (ret < 0) {
- fail("client: Handshake failed\n");
- gnutls_perror(ret);
+ fail("client: Handshake failed: %s (%d)\n", gnutls_strerror(ret), ret);
exit(1);
} else {
if (debug)
@@ -320,7 +319,7 @@ static void start(const char *prio)
}
}
-#define AES_GCM "NONE:+VERS-DTLS1.0:-CIPHER-ALL:+ECDHE-ECDSA:+AES-128-GCM:+MAC-ALL:+SIGN-ALL:+COMP-ALL:+ANON-ECDH:+CURVE-ALL"
+#define AES_GCM "NONE:+VERS-DTLS1.2:-CIPHER-ALL:+ECDHE-ECDSA:+AES-128-GCM:+MAC-ALL:+SIGN-ALL:+COMP-ALL:+ANON-ECDH:+CURVE-ALL"
static void ch_handler(int sig)
{