Blame SOURCES/gnupg-2.0.22-rsa-es.patch

6f876e
diff -up gnupg-2.0.22/g10/misc.c.bz1233182 gnupg-2.0.22/g10/misc.c
6f876e
--- gnupg-2.0.22/g10/misc.c.bz1233182	2015-06-17 13:15:32.930000000 +0200
6f876e
+++ gnupg-2.0.22/g10/misc.c	2015-06-19 13:56:28.246000000 +0200
6f876e
@@ -421,6 +421,8 @@ openpgp_cipher_algo_name (int algo)
6f876e
 int
6f876e
 map_pk_openpgp_to_gcry (int algo)
6f876e
 {
6f876e
+  if (is_RSA (algo))
6f876e
+    return (GCRY_PK_RSA);
6f876e
   switch (algo)
6f876e
     {
6f876e
     case PUBKEY_ALGO_ECDSA: return 301 /*GCRY_PK_ECDSA*/;
6f876e
@@ -1417,7 +1419,7 @@ pubkey_nbits( int algo, gcry_mpi_t *key
6f876e
 			      "(public-key(elg(p%m)(g%m)(y%m)))",
6f876e
 				  key[0], key[1], key[2] );
6f876e
     }
6f876e
-    else if( algo == GCRY_PK_RSA ) {
6f876e
+    else if( is_RSA (algo) ) {
6f876e
 	rc = gcry_sexp_build ( &sexp, NULL,
6f876e
 			      "(public-key(rsa(n%m)(e%m)))",
6f876e
 				  key[0], key[1] );