Fix gpg_error_t and gpg_err_code_t confusion.
authorNIIBE Yutaka <gniibe@fsij.org>
Wed, 14 Oct 2015 02:52:40 +0000 (11:52 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Wed, 14 Oct 2015 02:52:40 +0000 (11:52 +0900)
commit813565a07ca575c87e1252c6ed26018653ecd338
tree6be01a85707031937e9967babfcde92b988d4918
parentfa94b6111948a614ebdcb67f7942eced8b84c579
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.
cipher/cipher.c
cipher/dsa.c
cipher/ecc-eddsa.c
cipher/mac.c
cipher/rsa-common.c
src/gcrypt-int.h
src/global.c
src/sexp.c
src/visibility.c