summaryrefslogtreecommitdiff
path: root/tests/dtls1-2-mtu-check.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-03-01 15:52:13 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-03-02 13:12:39 +0100
commit124220d82dc97ae272a47f85e89bfe1c14354d01 (patch)
tree12d4aa467a6b84b9d68b742af63c63ef1640903e /tests/dtls1-2-mtu-check.c
parent9bdef03d0f472a8850f4b892e3b0432ffbb899ae (diff)
downloadgnutls-124220d82dc97ae272a47f85e89bfe1c14354d01.tar.gz
tests: skip tests which cannot be run in FIPS140-2 mode
This allows the test suite to be run in FIPS140-2 mode. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'tests/dtls1-2-mtu-check.c')
-rw-r--r--tests/dtls1-2-mtu-check.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/dtls1-2-mtu-check.c b/tests/dtls1-2-mtu-check.c
index b42cd220de..06c3c2a692 100644
--- a/tests/dtls1-2-mtu-check.c
+++ b/tests/dtls1-2-mtu-check.c
@@ -181,7 +181,8 @@ void doit(void)
/* check non-CBC ciphers */
dtls_mtu_try("DTLS 1.2 with AES-128-GCM", "NORMAL:-VERS-ALL:+VERS-DTLS1.2:-CIPHER-ALL:+AES-128-GCM", 1500, 1463);
- dtls_mtu_try("DTLS 1.2 with CHACHA20-POLY1305", "NORMAL:-VERS-ALL:+VERS-DTLS1.2:-CIPHER-ALL:+CHACHA20-POLY1305", 1500, 1471);
+ if (!gnutls_fips140_mode_enabled())
+ dtls_mtu_try("DTLS 1.2 with CHACHA20-POLY1305", "NORMAL:-VERS-ALL:+VERS-DTLS1.2:-CIPHER-ALL:+CHACHA20-POLY1305", 1500, 1471);
/* check EtM CBC */
dtls_mtu_try("DTLS 1.2/EtM with AES-128-CBC-HMAC-SHA1", "NORMAL:-VERS-ALL:+VERS-DTLS1.2:-CIPHER-ALL:+AES-128-CBC:-MAC-ALL:+SHA1", 1500, 1439);