summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cipher/pubkey.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/cipher/pubkey.c b/cipher/pubkey.c
index 9aeacedb..e3842c09 100644
--- a/cipher/pubkey.c
+++ b/cipher/pubkey.c
@@ -57,18 +57,16 @@ map_algo (int algo)
{
switch (algo)
{
- case GCRY_PK_ECDSA:
- case GCRY_PK_ECDH:
- return GCRY_PK_ECC;
- case GCRY_PK_ELG_E:
- return GCRY_PK_ELG;
- default:
- return algo;
+ case GCRY_PK_RSA_E: return GCRY_PK_RSA;
+ case GCRY_PK_RSA_S: return GCRY_PK_RSA;
+ case GCRY_PK_ELG_E: return GCRY_PK_ELG;
+ case GCRY_PK_ECDSA: return GCRY_PK_ECC;
+ case GCRY_PK_ECDH: return GCRY_PK_ECC;
+ default: return algo;
}
}
-
/* Return the spec structure for the public key algorithm ALGO. For
an unknown algorithm NULL is returned. */
static gcry_pk_spec_t *