aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2025-02-03 15:32:05 +0000
committerWerner Koch <[email protected]>2025-02-04 13:04:53 +0000
commita6e8f961436dd470b819ff3fa3ed0da946dafc87 (patch)
treed61e876e54acdf8cf2192bcc9d149f771cfefc66
parentbuild: Fix generation of ChangeLog on secondary working trees (diff)
downloadgpgme-a6e8f961436dd470b819ff3fa3ed0da946dafc87.tar.gz
gpgme-a6e8f961436dd470b819ff3fa3ed0da946dafc87.zip
core: Fix regression for RSA in gpgme_pubkey_algo_string.
* src/gpgme.c (gpgme_pubkey_algo_string): Consider all RSA variants. -- Fixes-commit: 62b6c1f16ae0ed7b0eb1b095ee383aa0910314bb GnuPG-bug-id: 7508
-rw-r--r--src/gpgme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpgme.c b/src/gpgme.c
index e65fb38a..f37d3fa6 100644
--- a/src/gpgme.c
+++ b/src/gpgme.c
@@ -1307,8 +1307,8 @@ gpgme_pubkey_algo_string (gpgme_subkey_t subkey)
{
case GPGME_PK_RSA:
case GPGME_PK_RSA_E:
- case GPGME_PK_KYBER: composite = 1; break;
case GPGME_PK_RSA_S: prefix = "rsa"; break;
+ case GPGME_PK_KYBER: composite = 1; break;
case GPGME_PK_ELG_E: prefix = "elg"; break;
case GPGME_PK_DSA: prefix = "dsa"; break;
case GPGME_PK_ELG: prefix = "xxx"; break;