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 /cipher/rsa-common.c | |
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 'cipher/rsa-common.c')
-rw-r--r-- | cipher/rsa-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cipher/rsa-common.c b/cipher/rsa-common.c index f56e9896..b2601423 100644 --- a/cipher/rsa-common.c +++ b/cipher/rsa-common.c @@ -393,7 +393,7 @@ mgf1 (unsigned char *output, size_t outlen, unsigned char *seed, size_t seedlen, size_t dlen, nbytes, n; int idx; gcry_md_hd_t hd; - gcry_error_t err; + gcry_err_code_t err; err = _gcry_md_open (&hd, algo, 0); if (err) |