diff options
author | Werner Koch <wk@gnupg.org> | 2013-04-11 20:27:46 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2013-04-11 20:27:46 +0200 |
commit | 1f3cfad66456dd6f2e48f20b8eb0c51343449a1c (patch) | |
tree | 46076f365f00ae81e800a7a30bdcf3d5ab69192d /configure.ac | |
parent | a4e1f6ae7ea7f140e36c331a362bc299dce08416 (diff) | |
download | libgcrypt-1f3cfad66456dd6f2e48f20b8eb0c51343449a1c.tar.gz |
Add gcry_pubkey_get_sexp.
* src/gcrypt.h.in (GCRY_PK_GET_PUBKEY): New.
(GCRY_PK_GET_SECKEY): New.
(gcry_pubkey_get_sexp): New.
* src/visibility.c (gcry_pubkey_get_sexp): New.
* src/visibility.h (gcry_pubkey_get_sexp): Mark visible.
* src/libgcrypt.def, src/libgcrypt.vers: Add new function.
* cipher/pubkey-internal.h: New.
* cipher/Makefile.am (libcipher_la_SOURCES): Add new file.
* cipher/ecc.c: Include pubkey-internal.h
(_gcry_pk_ecc_get_sexp): New.
* cipher/pubkey.c: Include pubkey-internal.h and context.h.
(_gcry_pubkey_get_sexp): New.
* src/context.c (_gcry_ctx_find_pointer): New.
* src/cipher-proto.h: Add _gcry_pubkey_get_sexp.
* tests/t-mpi-point.c (print_sexp): New.
(context_param, basic_ec_math_simplified): Add tests for the new
function.
* configure.ac (NEED_GPG_ERROR_VERSION): Set to 1.11.
(AH_BOTTOM) Add error codes from gpg-error 1.12
* src/g10lib.h (fips_not_operational): Use GPG_ERR_NOT_OPERATIONAL.
* mpi/ec.c (_gcry_mpi_ec_get_mpi): Fix computation of Q.
(_gcry_mpi_ec_get_point): Ditto.
--
While checking the new code I figured that the auto-computation of Q
must have led to a segv. It seems we had no test case for that.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac index c5973896..079951db 100644 --- a/configure.ac +++ b/configure.ac @@ -1,7 +1,7 @@ # Configure.ac script for Libgcrypt # Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2006, # 2007, 2008, 2009, 2011 Free Software Foundation, Inc. -# Copyright (C) 2012 g10 Code GmbH +# Copyright (C) 2012, 2013 g10 Code GmbH # # This file is part of Libgcrypt. # @@ -65,7 +65,7 @@ LIBGCRYPT_LT_REVISION=0 # If the API is changed in an incompatible way: increment the next counter. LIBGCRYPT_CONFIG_API_VERSION=1 -NEED_GPG_ERROR_VERSION=1.8 +NEED_GPG_ERROR_VERSION=1.11 PACKAGE=$PACKAGE_NAME VERSION=$PACKAGE_VERSION @@ -105,10 +105,14 @@ AH_BOTTOM([ properly prefixed. */ #define CAMELLIA_EXT_SYM_PREFIX _gcry_ -/* This error code is only available with gpg-error 1.7. Thus - we define it here with the usual gcry prefix. */ -#define GCRY_GPG_ERR_NOT_OPERATIONAL 176 - +/* These error codes are used but not defined in the required + libgpg-error 1.11. Define them here. */ +#define GPG_ERR_NO_CRYPT_CTX 191 +#define GPG_ERR_WRONG_CRYPT_CTX 192 +#define GPG_ERR_BAD_CRYPT_CTX 193 +#define GPG_ERR_CRYPT_CTX_CONFLICT 194 +#define GPG_ERR_BROKEN_PUBKEY 195 +#define GPG_ERR_BROKEN_SECKEY 196 #endif /*_GCRYPT_CONFIG_H_INCLUDED*/ ]) |