summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2013-07-17 15:54:32 +0200
committerWerner Koch <wk@gnupg.org>2013-07-17 15:54:32 +0200
commit5940e66cbefea3de5924f494f18aed69bb694bff (patch)
tree054fe254b2bd012281e57d594455754c5309c91c /src
parent6e1adb05d290aeeb1c230c763970695f4a538526 (diff)
downloadlibgcrypt-5940e66cbefea3de5924f494f18aed69bb694bff.tar.gz
cipher: Prepare to pass extra info to the sign functions.
* src/gcrypt-module.h (gcry_pk_sign_t): Add parms flags and hashalgo. * cipher/rsa.c (rsa_sign): Add parms and mark them as unused. * cipher/dsa.c (dsa_sign): Ditto. * cipher/elgamal.c (elg_sign): Ditto. * cipher/pubkey.c (dummy_sign): Ditto. (pubkey_sign): Pass 0 for the new args. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'src')
-rw-r--r--src/gcrypt-module.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gcrypt-module.h b/src/gcrypt-module.h
index 93f61629..cd55207a 100644
--- a/src/gcrypt-module.h
+++ b/src/gcrypt-module.h
@@ -127,7 +127,9 @@ typedef gcry_err_code_t (*gcry_pk_decrypt_t) (int algo,
typedef gcry_err_code_t (*gcry_pk_sign_t) (int algo,
gcry_mpi_t *resarr,
gcry_mpi_t data,
- gcry_mpi_t *skey);
+ gcry_mpi_t *skey,
+ int flags,
+ int hashalgo);
/* Type for the pk_verify function. */
typedef gcry_err_code_t (*gcry_pk_verify_t) (int algo,