From: Nikos Mavrogiannopoulos Date: Sat, 13 Jul 2013 10:04:01 +0000 (+0200) Subject: gnutls-cli -l prints the supported digest algorithms as well. X-Git-Tag: gnutls_3_2_2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=06dcc2ca768a12b503094a375cdab61d581997f1;p=thirdparty%2Fgnutls.git gnutls-cli -l prints the supported digest algorithms as well. --- diff --git a/src/common.c b/src/common.c index 429c93e68f..cdbb25219a 100644 --- a/src/common.c +++ b/src/common.c @@ -864,6 +864,20 @@ print_list (const char *priorities, int verbose) } } + { + const gnutls_digest_algorithm_t *p = gnutls_digest_list (); + + printf ("Digests: "); + for (; *p; p++) + { + printf ("%s", gnutls_digest_get_name (*p)); + if (*(p + 1)) + printf (", "); + else + printf ("\n"); + } + } + { const gnutls_kx_algorithm_t *p = gnutls_kx_list ();