diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2018-07-03 08:49:06 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2018-07-07 08:26:47 +0200 |
commit | 805f14d44805ec8070334e24ad87539d5f0b33dd (patch) | |
tree | 74b60c340298d902b0d3c97cf3629142feec5cf2 /tests/priorities.c | |
parent | 6ca5787e2027a163eee5f85b36e8e0fe24fd6a53 (diff) | |
download | gnutls-805f14d44805ec8070334e24ad87539d5f0b33dd.tar.gz |
configure: added option --enable-tls13-support
The new option enables TLS1.3 draft-28 support unconditionally.
Updated the test suite to run when TLS1.3 is enabled by default,
and added a CI run with TLS1.3 enabled.
Resolves #424
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'tests/priorities.c')
-rw-r--r-- | tests/priorities.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/tests/priorities.c b/tests/priorities.c index 3cbde6e566..c5d44ea339 100644 --- a/tests/priorities.c +++ b/tests/priorities.c @@ -114,11 +114,20 @@ try_prio_err(const char *prio, int err) void doit(void) { const int null = 3; +#ifdef ENABLE_TLS13 + int sec128_cs = 29; + int sec256_cs = 12; + int normal_cs = 29; + int pfs_cs = 23; + int null_normal_cs = 28; /* disables TLS1.3 CS */ +#else int sec128_cs = 25; int sec256_cs = 10; + int pfs_cs = 19; int normal_cs = 25; + int null_normal_cs = normal_cs + null; +#endif int normal_ciphers = 7; - int pfs_cs = 19; if (gnutls_fips140_mode_enabled()) { normal_cs = 22; @@ -135,7 +144,7 @@ void doit(void) try_prio("PFS", pfs_cs, normal_ciphers, __LINE__); try_prio("NORMAL:+CIPHER-ALL", normal_cs, 7, __LINE__); /* all (except null) */ try_prio("NORMAL:-CIPHER-ALL:+NULL", null, 1, __LINE__); /* null */ - try_prio("NORMAL:-CIPHER-ALL:+NULL:+CIPHER-ALL", normal_cs + null, 8, __LINE__); /* should be null + all */ + try_prio("NORMAL:-CIPHER-ALL:+NULL:+CIPHER-ALL", null_normal_cs, 8, __LINE__); /* should be null + all */ try_prio("NORMAL:-CIPHER-ALL:+NULL:+CIPHER-ALL:-CIPHER-ALL:+AES-128-CBC", 4, 1, __LINE__); /* should be null + all */ } |