3118e2007a
update to 2.0.22 [bnc#844175] [CVE-2013-4402] (forwarded request 202365 from AndreasStieger) OBS-URL: https://build.opensuse.org/request/show/202374 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gpg2?expand=0&rev=73
46 lines
1.6 KiB
Diff
46 lines
1.6 KiB
Diff
# adds back support for deprecated RSA_E, RSA_S algorithms
|
|
---
|
|
# g10/misc.c | 8 ++++++++
|
|
# 1 file changed, 8 insertions(+)
|
|
#
|
|
Index: gnupg-2.0.22/g10/misc.c
|
|
===================================================================
|
|
--- gnupg-2.0.22.orig/g10/misc.c 2013-10-04 16:54:48.000000000 +0100
|
|
+++ gnupg-2.0.22/g10/misc.c 2013-10-05 12:39:16.000000000 +0100
|
|
@@ -1333,6 +1333,8 @@ pubkey_get_npkey( int algo )
|
|
|
|
if (algo == GCRY_PK_ELG_E)
|
|
algo = GCRY_PK_ELG;
|
|
+ if (algo == GCRY_PK_RSA_E || algo == GCRY_PK_RSA_S)
|
|
+ algo = GCRY_PK_RSA;
|
|
if (gcry_pk_algo_info (map_pk_openpgp_to_gcry (algo),
|
|
GCRYCTL_GET_ALGO_NPKEY, NULL, &n))
|
|
n = 0;
|
|
@@ -1353,6 +1355,8 @@ pubkey_get_nskey( int algo )
|
|
|
|
if (algo == GCRY_PK_ELG_E)
|
|
algo = GCRY_PK_ELG;
|
|
+ if (algo == GCRY_PK_RSA_E || algo == GCRY_PK_RSA_S)
|
|
+ algo = GCRY_PK_RSA;
|
|
if (gcry_pk_algo_info (map_pk_openpgp_to_gcry (algo),
|
|
GCRYCTL_GET_ALGO_NSKEY, NULL, &n ))
|
|
n = 0;
|
|
@@ -1373,6 +1377,8 @@ pubkey_get_nsig( int algo )
|
|
|
|
if (algo == GCRY_PK_ELG_E)
|
|
algo = GCRY_PK_ELG;
|
|
+ if (algo == GCRY_PK_RSA_E || algo == GCRY_PK_RSA_S)
|
|
+ algo = GCRY_PK_RSA;
|
|
if (gcry_pk_algo_info (map_pk_openpgp_to_gcry (algo),
|
|
GCRYCTL_GET_ALGO_NSIGN, NULL, &n))
|
|
n = 0;
|
|
@@ -1393,6 +1399,8 @@ pubkey_get_nenc( int algo )
|
|
|
|
if (algo == GCRY_PK_ELG_E)
|
|
algo = GCRY_PK_ELG;
|
|
+ if (algo == GCRY_PK_RSA_E || algo == GCRY_PK_RSA_S)
|
|
+ algo = GCRY_PK_RSA;
|
|
if (gcry_pk_algo_info (map_pk_openpgp_to_gcry (algo),
|
|
GCRYCTL_GET_ALGO_NENCR, NULL, &n ))
|
|
n = 0;
|