diff options
author | Simon Josefsson <simon@josefsson.org> | 2008-09-01 17:30:56 +0200 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2008-09-01 17:30:56 +0200 |
commit | 5c7c3fe5f8f9494e2676f82ed1ce0d9a18fd42d6 (patch) | |
tree | 3e2f9f0e0134f99c9f39bc1fb3552ddf0e031def /src/common.c | |
parent | 9705b3697ab7dc23d70fe2a1d275bb062334f0ef (diff) | |
download | gnutls-5c7c3fe5f8f9494e2676f82ed1ce0d9a18fd42d6.tar.gz |
Print pk and sign algos.
Diffstat (limited to 'src/common.c')
-rw-r--r-- | src/common.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/common.c b/src/common.c index 59e8360aad..8a70c37441 100644 --- a/src/common.c +++ b/src/common.c @@ -756,6 +756,34 @@ print_list (int verbose) printf ("\n"); } } + + { + const gnutls_pk_algorithm_t *p = gnutls_pk_list (); + + printf ("Public Key Systems: "); + for (; *p; p++) + { + printf ("%s", gnutls_pk_algorithm_get_name (*p)); + if (*(p + 1)) + printf (", "); + else + printf ("\n"); + } + } + + { + const gnutls_sign_algorithm_t *p = gnutls_sign_list (); + + printf ("PK-signatures: "); + for (; *p; p++) + { + printf ("%s", gnutls_sign_algorithm_get_name (*p)); + if (*(p + 1)) + printf (", "); + else + printf ("\n"); + } + } } void |