From 7d09f1f9fbf8889f467a06432f1954f9ad4f5922 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 3 Feb 2025 16:32:05 +0100 Subject: 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 --- src/gpgme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3