[git] GCRYPT - branch, master, updated. libgcrypt-1.6.0-63-g773e236

by Werner Koch cvs at cvs.gnupg.org
Wed Apr 16 15:03:32 CEST 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU crypto library".

The branch, master has been updated
       via  773e23698218755e9172d2507031a8263c47cc0b (commit)
      from  ae1fbce6dacf14747af0126e640bd4e54cb8c680 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 773e23698218755e9172d2507031a8263c47cc0b
Author: Werner Koch <wk at gnupg.org>
Date:   Tue Apr 15 16:40:48 2014 +0200

    pubkey: Re-map all depreccated RSA algo numbers.
    
    * cipher/pubkey.c (map_algo): Mape RSA_E and RSA_S.

diff --git a/cipher/pubkey.c b/cipher/pubkey.c
index 9aeaced..e3842c0 100644
--- a/cipher/pubkey.c
+++ b/cipher/pubkey.c
@@ -57,18 +57,16 @@ map_algo (int algo)
 {
  switch (algo)
    {
-   case GCRY_PK_ECDSA:
-   case GCRY_PK_ECDH:
-     return GCRY_PK_ECC;
-   case GCRY_PK_ELG_E:
-     return GCRY_PK_ELG;
-   default:
-     return algo;
+   case GCRY_PK_RSA_E: return GCRY_PK_RSA;
+   case GCRY_PK_RSA_S: return GCRY_PK_RSA;
+   case GCRY_PK_ELG_E: return GCRY_PK_ELG;
+   case GCRY_PK_ECDSA: return GCRY_PK_ECC;
+   case GCRY_PK_ECDH:  return GCRY_PK_ECC;
+   default:            return algo;
    }
 }
 
 
-
 /* Return the spec structure for the public key algorithm ALGO.  For
    an unknown algorithm NULL is returned.  */
 static gcry_pk_spec_t *

-----------------------------------------------------------------------

Summary of changes:
 cipher/pubkey.c |   14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)


hooks/post-receive
-- 
The GNU crypto library
http://git.gnupg.org


_______________________________________________
Gnupg-commits mailing list
Gnupg-commits at gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-commits




More information about the Gcrypt-devel mailing list