diff options
author | Werner Koch <wk@gnupg.org> | 2011-01-21 15:22:41 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2011-01-21 15:22:41 +0100 |
commit | 27929981fc23fabecf6af9fa1361361b821bb2fd (patch) | |
tree | 480f23530b3835705f5d68f50a412c5126b2b279 /g10/sign.c | |
parent | Editorial changes and allow building with old libgcrypts. (diff) | |
download | gnupg2-27929981fc23fabecf6af9fa1361361b821bb2fd.tar.xz gnupg2-27929981fc23fabecf6af9fa1361361b821bb2fd.zip |
Make most of the selftests work.
Note that there is still a problem with tests/openpgp/sigs.test while
using the option --digest-algo SHA256.
Diffstat (limited to 'g10/sign.c')
-rw-r--r-- | g10/sign.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/g10/sign.c b/g10/sign.c index 30dc66d5f..cbb3c62e8 100644 --- a/g10/sign.c +++ b/g10/sign.c @@ -298,6 +298,9 @@ do_sign (PKT_public_key *pksk, PKT_signature *sig, { PKT_public_key *pk = xmalloc_clear (sizeof *pk); + log_debug ("checking created signature algo=%d\n", mdalgo); + log_printhex ("md:", dp, gcry_md_get_algo_dlen (mdalgo)); + if (get_pubkey (pk, sig->keyid )) err = gpg_error (GPG_ERR_NO_PUBKEY); else |