diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-10-23 18:53:45 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-10-23 18:56:02 +0200 |
commit | 3ff8313d3eb53eed1a509e45d5f5103c87c1900d (patch) | |
tree | 8762ce9e662d92f99ff4d58d8e7921aebf66e602 /tests/priorities.c | |
parent | a960a0fd4ab2aa6166c9f42914442c7e6630dcfb (diff) | |
download | gnutls-3ff8313d3eb53eed1a509e45d5f5103c87c1900d.tar.gz |
Added camellia-gcm into the default priority levels, and prioritized GCM over CBC everywhere.
Diffstat (limited to 'tests/priorities.c')
-rw-r--r-- | tests/priorities.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/priorities.c b/tests/priorities.c index b1c0ae55eb..ecd13f7e7b 100644 --- a/tests/priorities.c +++ b/tests/priorities.c @@ -94,21 +94,21 @@ for (i=0;i<ret;i++) void doit (void) { -const int normal = 55; +const int normal = 65; const int null = 5; -const int sec128 = 45; +const int sec128 = 55; - try_prio("NORMAL", normal, 8); - try_prio("NORMAL:-MAC-ALL:+MD5:+MAC-ALL", normal, 8); - try_prio("NORMAL:+CIPHER-ALL", normal, 8); /* all (except null) */ + try_prio("NORMAL", normal, 10); + try_prio("NORMAL:-MAC-ALL:+MD5:+MAC-ALL", normal, 10); + try_prio("NORMAL:+CIPHER-ALL", normal, 10); /* all (except null) */ try_prio("NORMAL:-CIPHER-ALL:+NULL", null, 1); /* null */ - try_prio("NORMAL:-CIPHER-ALL:+NULL:+CIPHER-ALL", normal+null, 9); /* should be null + all */ + try_prio("NORMAL:-CIPHER-ALL:+NULL:+CIPHER-ALL", normal+null, 11); /* should be null + all */ try_prio("NORMAL:-CIPHER-ALL:+NULL:+CIPHER-ALL:-CIPHER-ALL:+AES-128-CBC", 10, 1); /* should be null + all */ - try_prio("PERFORMANCE", normal, 8); - try_prio("SECURE256", 14, 3); - try_prio("SECURE128", sec128, 6); - try_prio("SECURE128:+SECURE256", sec128, 6); /* should be the same as SECURE128 */ - try_prio("SECURE128:+SECURE256:+NORMAL", normal, 8); /* should be the same as NORMAL */ + try_prio("PERFORMANCE", normal, 10); + try_prio("SECURE256", 19, 4); + try_prio("SECURE128", sec128, 8); + try_prio("SECURE128:+SECURE256", sec128, 8); /* should be the same as SECURE128 */ + try_prio("SECURE128:+SECURE256:+NORMAL", normal, 10); /* should be the same as NORMAL */ try_prio("SUITEB192", 1, 1); } |