diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2015-03-03 18:52:22 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2015-03-03 19:01:38 +0100 |
commit | ce79b7b3edf69e6e3991a1d2d81945579160f326 (patch) | |
tree | c432e3447adc88326b6d1c2db803c1f28351ef26 /tests/priorities.c | |
parent | 8fd1b8c504d82848bf73120412aab9b40cdfb8de (diff) | |
download | gnutls-ce79b7b3edf69e6e3991a1d2d81945579160f326.tar.gz |
tests: updated the suite to account for the removal of DSA by default
Diffstat (limited to 'tests/priorities.c')
-rw-r--r-- | tests/priorities.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/priorities.c b/tests/priorities.c index 21fd098d76..9255849b1d 100644 --- a/tests/priorities.c +++ b/tests/priorities.c @@ -1,5 +1,6 @@ /* * Copyright (C) 2012 Free Software Foundation, Inc. + * Copyright (C) 2012-2015 Nikos Mavrogiannopoulos * * Author: Nikos Mavrogiannopoulos * @@ -100,18 +101,18 @@ try_prio(const char *prio, unsigned expected_cs, unsigned expected_ciphers, unsi void doit(void) { - const int normal = 67; + const int normal = 54; const int null = 5; - const int sec128 = 62; + const int sec128 = 50; try_prio("NORMAL", normal, 11, __LINE__); try_prio("NORMAL:-MAC-ALL:+MD5:+MAC-ALL", normal, 11, __LINE__); try_prio("NORMAL:+CIPHER-ALL", normal, 11, __LINE__); /* all (except null) */ try_prio("NORMAL:-CIPHER-ALL:+NULL", null, 1, __LINE__); /* null */ try_prio("NORMAL:-CIPHER-ALL:+NULL:+CIPHER-ALL", normal + null, 12, __LINE__); /* should be null + all */ - try_prio("NORMAL:-CIPHER-ALL:+NULL:+CIPHER-ALL:-CIPHER-ALL:+AES-128-CBC", 10, 1, __LINE__); /* should be null + all */ + try_prio("NORMAL:-CIPHER-ALL:+NULL:+CIPHER-ALL:-CIPHER-ALL:+AES-128-CBC", 8, 1, __LINE__); /* should be null + all */ try_prio("PERFORMANCE", normal, 11, __LINE__); - try_prio("SECURE256", 23, 5, __LINE__); + try_prio("SECURE256", 19, 5, __LINE__); try_prio("SECURE128", sec128, 10, __LINE__); try_prio("SECURE128:+SECURE256", sec128, 10, __LINE__); /* should be the same as SECURE128 */ try_prio("SECURE128:+SECURE256:+NORMAL", normal, 11, __LINE__); /* should be the same as NORMAL */ |