From: Nikos Mavrogiannopoulos Date: Thu, 25 Jul 2013 11:42:31 +0000 (+0200) Subject: test also the number of ciphers. X-Git-Tag: gnutls_3_2_3pre0~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=658b7814224943a97307fb4b03bdf40bb46f4b8c;p=thirdparty%2Fgnutls.git test also the number of ciphers. --- diff --git a/tests/priorities.c b/tests/priorities.c index fdb7de8baf..cdf69baf40 100644 --- a/tests/priorities.c +++ b/tests/priorities.c @@ -32,11 +32,12 @@ #include "utils.h" static void -try_prio (const char* prio, unsigned expected) +try_prio (const char* prio, unsigned expected_cs, unsigned expected_ciphers) { int ret; gnutls_priority_t p; const char* err; +const unsigned int * t; unsigned i, si, count = 0; /* this must be called once in the program @@ -65,6 +66,17 @@ unsigned i, si, count = 0; } + ret = gnutls_priority_cipher_list (p, &t); + if ((unsigned)ret != expected_ciphers) + { +#if 0 +for (i=0;i