diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2015-10-13 12:28:00 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2015-10-13 12:28:00 +0900 |
commit | 73374fdd27c7ba28b19f9672c68a6f5b72252fe5 (patch) | |
tree | 677590debae3a5ece5af31640c9f407b33675536 /cipher/dsa.c | |
parent | 3a3d5410cc83f7069c7cb1ab384905f382292d32 (diff) | |
download | libgcrypt-73374fdd27c7ba28b19f9672c68a6f5b72252fe5.tar.gz |
Fix declaration of return type.
* src/gcrypt-int.h (_gcry_sexp_extract_param): Return gpg_error_t.
* cipher/dsa.c (dsa_generate): Fix call to _gcry_sexp_extract_param.
* src/g10lib.h (_gcry_vcontrol): Return gcry_err_code_t.
* src/visibility.c (gcry_mpi_snatch): Fix call to _gcry_mpi_snatch.
--
GnuPG-bug-id: 2074
Diffstat (limited to 'cipher/dsa.c')
-rw-r--r-- | cipher/dsa.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cipher/dsa.c b/cipher/dsa.c index 09cd9693..723f6909 100644 --- a/cipher/dsa.c +++ b/cipher/dsa.c @@ -968,12 +968,14 @@ dsa_generate (const gcry_sexp_t genparms, gcry_sexp_t *r_skey) static gcry_err_code_t dsa_check_secret_key (gcry_sexp_t keyparms) { + gcry_error_t err; gcry_err_code_t rc; DSA_secret_key sk = {NULL, NULL, NULL, NULL, NULL}; - rc = _gcry_sexp_extract_param (keyparms, NULL, "pqgyx", - &sk.p, &sk.q, &sk.g, &sk.y, &sk.x, - NULL); + err = _gcry_sexp_extract_param (keyparms, NULL, "pqgyx", + &sk.p, &sk.q, &sk.g, &sk.y, &sk.x, + NULL); + rc = gpg_err_code (err); if (rc) goto leave; |