diff options
author | Werner Koch <wk@gnupg.org> | 1998-05-13 19:53:36 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 1998-05-13 19:53:36 +0200 |
commit | 0e5a31d7be80d1dd1bcdff04dad226f0f49e0cce (patch) | |
tree | c569c8c335f811af291181d48bceb336906025a0 /g10/sig-check.c | |
parent | add DSA key generation (diff) | |
download | gnupg2-0e5a31d7be80d1dd1bcdff04dad226f0f49e0cce.tar.xz gnupg2-0e5a31d7be80d1dd1bcdff04dad226f0f49e0cce.zip |
can create v4 signatures
Diffstat (limited to 'g10/sig-check.c')
-rw-r--r-- | g10/sig-check.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/g10/sig-check.c b/g10/sig-check.c index 1af891d44..0d93240df 100644 --- a/g10/sig-check.c +++ b/g10/sig-check.c @@ -134,6 +134,7 @@ do_check( PKT_public_cert *pkc, PKT_signature *sig, MD_HANDLE digest ) md_write( digest, buf, 6 ); } md_final( digest ); + result = mpi_alloc( (md_digest_length(sig->digest_algo) +BYTES_PER_MPI_LIMB-1) / BYTES_PER_MPI_LIMB ); mpi_set_buffer( result, md_read(digest, sig->digest_algo), @@ -344,6 +345,7 @@ check_key_signature( KBNODE root, KBNODE node, int *is_selfsig ) keyid_from_pkc( pkc, keyid ); md = md_open( algo, 0 ); + md_start_debug(md, "check"); hash_public_cert( md, pkc ); hash_uid_node( unode, md, sig ); if( keyid[0] == sig->keyid[0] && keyid[1] == sig->keyid[1] ) { |