aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2025-02-03 15:32:05 +0000
committerWerner Koch <[email protected]>2025-02-03 15:37:57 +0000
commit7d09f1f9fbf8889f467a06432f1954f9ad4f5922 (patch)
treeb886a5caaa8fc9d559bca59e2fc58e7d32a6c096
parentBump version after splitting off bindings (diff)
downloadgpgme-7d09f1f9fbf8889f467a06432f1954f9ad4f5922.tar.gz
gpgme-7d09f1f9fbf8889f467a06432f1954f9ad4f5922.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;