summaryrefslogtreecommitdiff
path: root/src/g10lib.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2013-09-07 10:06:46 +0200
committerWerner Koch <wk@gnupg.org>2013-09-20 18:30:05 +0200
commit3e5cfa20acfeccb9df2c3fae2730344b40b36104 (patch)
tree7b1eb9a1d34da43b39ac44ad45104f3cdbf31f24 /src/g10lib.h
parent722bfc1e5f2268453db62f38cc46b5ec6ef3adee (diff)
downloadlibgcrypt-3e5cfa20acfeccb9df2c3fae2730344b40b36104.tar.gz
sexp: Change internal versions to always use gpg_err_code_t.
* src/sexp.c (gcry_sexp_new, gcry_sexp_create, gcry_sexp_build) (gcry_sexp_build_array, gcry_sexp_canon_len): Change error return type from gpg_error_t to gpg_err_code_t. Remove all calls to gpg_error. * src/visibility.c (gcry_sexp_new, gcry_sexp_create, gcry_sexp_sscan) (gcry_sexp_build, gcry_sexp_build_array, gcry_sexp_canon_len): Map error codes via gpg_error. * cipher/dsa.c, cipher/ecc.c, cipher/elgamal.c, cipher/rsa.c: Remove use gpg_err_code wrappers. -- We should do such a change for all other use of internal functions. It just does not make sense to use gpg_error in the internal interface because the error source is always Libgcrypt. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'src/g10lib.h')
-rw-r--r--src/g10lib.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/g10lib.h b/src/g10lib.h
index 57176e9f..73ba6830 100644
--- a/src/g10lib.h
+++ b/src/g10lib.h
@@ -405,8 +405,8 @@ gcry_err_code_t _gcry_mpi_init (void);
/*-- sexp.c --*/
-gcry_error_t _gcry_sexp_vbuild (gcry_sexp_t *retsexp, size_t *erroff,
- const char *format, va_list arg_ptr);
+gcry_err_code_t _gcry_sexp_vbuild (gcry_sexp_t *retsexp, size_t *erroff,
+ const char *format, va_list arg_ptr);
gcry_mpi_t _gcry_sexp_nth_opaque_mpi (gcry_sexp_t list, int number);
char *_gcry_sexp_nth_string (const gcry_sexp_t list, int number);