mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Make most of the selftests work.
Note that there is still a problem with tests/openpgp/sigs.test while using the option --digest-algo SHA256.
This commit is contained in:
parent
90b0ff23b7
commit
27929981fc
6 changed files with 29 additions and 35 deletions
20
g10/misc.c
20
g10/misc.c
|
@ -503,25 +503,7 @@ openpgp_pk_algo_usage ( int algo )
|
|||
const char *
|
||||
openpgp_pk_algo_name (int algo)
|
||||
{
|
||||
/* We use fixed strings to have pretty names instead of those from
|
||||
libgcrypt. */
|
||||
switch (algo)
|
||||
{
|
||||
case PUBKEY_ALGO_RSA:
|
||||
case PUBKEY_ALGO_RSA_E:
|
||||
case PUBKEY_ALGO_RSA_S: return "rsa";
|
||||
|
||||
case PUBKEY_ALGO_ELGAMAL:
|
||||
case PUBKEY_ALGO_ELGAMAL_E: return "elg";
|
||||
|
||||
case PUBKEY_ALGO_DSA: return "dsa";
|
||||
|
||||
case PUBKEY_ALGO_ECDSA:return "ecdsa";
|
||||
|
||||
case PUBKEY_ALGO_ECDH: return "ecdh";
|
||||
|
||||
default: gcry_pk_algo_name (map_pk_openpgp_to_gcry (algo));
|
||||
}
|
||||
return gcry_pk_algo_name (map_pk_openpgp_to_gcry (algo));
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue