[PATCH libgcrypt] * gcrypt.h.in: Set appropriate algo id for ECDSA and ECDH

Kristian Fiskerstrand kf at sumptuouscapital.com
Sun Nov 18 19:08:32 CET 2012


* gcrypt.h.in: Set appropriate algo id for ECDSA and ECDH

--
Currently a request for e.g. gcry_pk_algo_name with argument
18 or 19 will return "?" rather than the appropriate name for the
algorithm. Setting the correct IDs fixes this behavior.

Signed-off-by: Kristian Fiskerstrand <kf at sumptuouscapital.com>
---
 src/gcrypt.h.in |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gcrypt.h.in b/src/gcrypt.h.in
index 1e9d11d..a7956b2 100644
--- a/src/gcrypt.h.in
+++ b/src/gcrypt.h.in
@@ -838,8 +838,8 @@ enum gcry_pk_algos
     GCRY_PK_ELG_E = 16,
     GCRY_PK_DSA   = 17,
     GCRY_PK_ELG   = 20,
-    GCRY_PK_ECDSA = 301,
-    GCRY_PK_ECDH  = 302
+    GCRY_PK_ECDSA = 19,
+    GCRY_PK_ECDH  = 18
   };
 
 /* Flags describing usage capabilities of a PK algorithm. */
-- 
1.7.9.5




More information about the Gnupg-devel mailing list