diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2015-10-14 11:52:40 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2015-10-14 11:52:40 +0900 |
commit | 813565a07ca575c87e1252c6ed26018653ecd338 (patch) | |
tree | 6be01a85707031937e9967babfcde92b988d4918 /src/gcrypt-int.h | |
parent | fa94b6111948a614ebdcb67f7942eced8b84c579 (diff) | |
download | libgcrypt-813565a07ca575c87e1252c6ed26018653ecd338.tar.gz |
Fix gpg_error_t and gpg_err_code_t confusion.
* src/gcrypt-int.h (_gcry_sexp_extract_param): Revert the change.
* cipher/dsa.c (dsa_check_secret_key): Ditto.
* src/sexp.c (_gcry_sexp_extract_param): Return gpg_err_code_t.
* src/gcrypt-int.h (_gcry_err_make_from_errno)
(_gcry_error_from_errno): Return gpg_error_t.
* cipher/cipher.c (_gcry_cipher_open_internal)
(_gcry_cipher_ctl, _gcry_cipher_ctl): Don't use gcry_error.
* src/global.c (_gcry_vcontrol): Likewise.
* cipher/ecc-eddsa.c (_gcry_ecc_eddsa_genkey): Use
gpg_err_code_from_syserror.
* cipher/mac.c (mac_reset, mac_setkey, mac_setiv, mac_write)
(mac_read, mac_verify): Return gcry_err_code_t.
* cipher/rsa-common.c (mgf1): Use gcry_err_code_t for ERR.
* src/visibility.c (gcry_error_from_errno): Return gpg_error_t.
--
Reverting a part of 73374fdd and fix _gcry_sexp_extract_param
return type, instead.
Fix similar coding mistakes, throughout.
Diffstat (limited to 'src/gcrypt-int.h')
-rw-r--r-- | src/gcrypt-int.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gcrypt-int.h b/src/gcrypt-int.h index ea3c8d53..8014d617 100644 --- a/src/gcrypt-int.h +++ b/src/gcrypt-int.h @@ -277,7 +277,7 @@ _gcry_err_code_to_errno (gcry_err_code_t code) /* Return an error value with the error source SOURCE and the system error ERR. */ -static inline gcry_err_code_t +static inline gcry_error_t _gcry_err_make_from_errno (gpg_err_source_t source, int err) { return gpg_err_make_from_errno (source, err); @@ -285,7 +285,7 @@ _gcry_err_make_from_errno (gpg_err_source_t source, int err) /* Return an error value with the system error ERR. */ -static inline gcry_err_code_t +static inline gcry_error_t _gcry_error_from_errno (int err) { return gpg_error (gpg_err_code_from_errno (err)); @@ -329,10 +329,10 @@ void *_gcry_sexp_nth_buffer (const gcry_sexp_t list, int number, size_t *rlength); char *_gcry_sexp_nth_string (gcry_sexp_t list, int number); gcry_mpi_t _gcry_sexp_nth_mpi (gcry_sexp_t list, int number, int mpifmt); -gpg_error_t _gcry_sexp_extract_param (gcry_sexp_t sexp, - const char *path, - const char *list, - ...) _GCRY_GCC_ATTR_SENTINEL(0); +gpg_err_code_t _gcry_sexp_extract_param (gcry_sexp_t sexp, + const char *path, + const char *list, + ...) _GCRY_GCC_ATTR_SENTINEL(0); #define sexp_new(a, b, c, d) _gcry_sexp_new ((a), (b), (c), (d)) #define sexp_create(a, b, c, d, e) _gcry_sexp_create ((a), (b), (c), (d), (e)) |