2008-04-06 05:55:31 +02:00
|
|
|
# adds back support for deprecated RSA_E, RSA_S algorithms
|
2013-05-12 18:46:27 +02:00
|
|
|
---
|
|
|
|
# g10/misc.c | 8 ++++++++
|
|
|
|
# 1 file changed, 8 insertions(+)
|
|
|
|
#
|
2013-10-05 17:00:23 +02:00
|
|
|
Index: gnupg-2.0.22/g10/misc.c
|
2009-06-20 01:33:05 +02:00
|
|
|
===================================================================
|
2013-10-05 17:00:23 +02:00
|
|
|
--- 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 )
|
2008-04-06 05:55:31 +02:00
|
|
|
|
|
|
|
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;
|
2013-10-05 17:00:23 +02:00
|
|
|
if (gcry_pk_algo_info (map_pk_openpgp_to_gcry (algo),
|
|
|
|
GCRYCTL_GET_ALGO_NPKEY, NULL, &n))
|
2008-04-06 05:55:31 +02:00
|
|
|
n = 0;
|
2013-10-05 17:00:23 +02:00
|
|
|
@@ -1353,6 +1355,8 @@ pubkey_get_nskey( int algo )
|
2008-04-06 05:55:31 +02:00
|
|
|
|
|
|
|
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;
|
2013-10-05 17:00:23 +02:00
|
|
|
if (gcry_pk_algo_info (map_pk_openpgp_to_gcry (algo),
|
|
|
|
GCRYCTL_GET_ALGO_NSKEY, NULL, &n ))
|
2008-04-06 05:55:31 +02:00
|
|
|
n = 0;
|
2013-10-05 17:00:23 +02:00
|
|
|
@@ -1373,6 +1377,8 @@ pubkey_get_nsig( int algo )
|
2008-04-06 05:55:31 +02:00
|
|
|
|
|
|
|
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;
|
2013-10-05 17:00:23 +02:00
|
|
|
if (gcry_pk_algo_info (map_pk_openpgp_to_gcry (algo),
|
|
|
|
GCRYCTL_GET_ALGO_NSIGN, NULL, &n))
|
2008-04-06 05:55:31 +02:00
|
|
|
n = 0;
|
2013-10-05 17:00:23 +02:00
|
|
|
@@ -1393,6 +1399,8 @@ pubkey_get_nenc( int algo )
|
2013-05-12 18:46:27 +02:00
|
|
|
|
2008-04-06 05:55:31 +02:00
|
|
|
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;
|
2013-10-05 17:00:23 +02:00
|
|
|
if (gcry_pk_algo_info (map_pk_openpgp_to_gcry (algo),
|
|
|
|
GCRYCTL_GET_ALGO_NENCR, NULL, &n ))
|
2008-04-06 05:55:31 +02:00
|
|
|
n = 0;
|