diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-07-13 12:04:01 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-07-13 12:04:01 +0200 |
commit | 06dcc2ca768a12b503094a375cdab61d581997f1 (patch) | |
tree | 50f203aeb2e032f9330199b2088e005910da7425 /src | |
parent | 5e38d8fff74a574ab8d405777a17bb9dfa3cb2eb (diff) | |
download | gnutls-06dcc2ca768a12b503094a375cdab61d581997f1.tar.gz |
gnutls-cli -l prints the supported digest algorithms as well.
Diffstat (limited to 'src')
-rw-r--r-- | src/common.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/common.c b/src/common.c index 429c93e68f..cdbb25219a 100644 --- a/src/common.c +++ b/src/common.c @@ -865,6 +865,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 (); printf ("Key exchange algorithms: "); |