diff options
author | Werner Koch <[email protected]> | 2020-05-08 12:14:01 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2020-05-08 13:10:13 +0000 |
commit | 34b628db4618a8712536aea695f934b0286e7b18 (patch) | |
tree | 82106e8c2790717c34b7171ade109f6d0b46ed97 /common/util.h | |
parent | sm: Improve readability of the data verification output. (diff) | |
download | gnupg-34b628db4618a8712536aea695f934b0286e7b18.tar.gz gnupg-34b628db4618a8712536aea695f934b0286e7b18.zip |
sm: Cleanup the use of GCRY_PK_ECC and GCRY_PK_ECDSA.
* common/sexputil.c (pubkey_algo_to_string): New.
* sm/certcheck.c (do_encode_md): Replace GCRY_PK_ECDSA by GCRY_PK_ECC.
* sm/certreqgen-ui.c (check_keygrip): Add all ECC algorithms.
* sm/gpgsm.c (our_pk_test_algo): Also allow EdDSA.
* sm/verify.c (gpgsm_verify): Map ECC algo to ECDSA. Use new pubkey
algo name function
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'common/util.h')
-rw-r--r-- | common/util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/util.h b/common/util.h index d22a1bf60..f2b4306c3 100644 --- a/common/util.h +++ b/common/util.h @@ -202,6 +202,7 @@ int get_pk_algo_from_key (gcry_sexp_t key); int get_pk_algo_from_canon_sexp (const unsigned char *keydata, size_t keydatalen); char *pubkey_algo_string (gcry_sexp_t s_pkey, enum gcry_pk_algos *r_algoid); +const char *pubkey_algo_to_string (int algo); const char *hash_algo_to_string (int algo); /*-- convert.c --*/ |