1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-16 00:29:50 +02:00

* sign.c (write_signature_packets): Lost a digest_algo line.

This commit is contained in:
David Shaw 2006-01-01 17:59:57 +00:00
parent cbc5c947d5
commit 5bce704dd3
2 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,7 @@
2006-01-01 David Shaw <dshaw@jabberwocky.com>
* sign.c (write_signature_packets): Lost a digest_algo line.
* sign.c (hash_for): Add code to detect if the sk lives on a smart
card. If it does, only allow 160-bit hashes, a la DSA. This
involves passing the *sk in, so change all callers. This is

View File

@ -655,6 +655,7 @@ write_signature_packets (SK_LIST sk_list, IOBUF out, MD_HANDLE hash,
else
sig->version=sk->version;
keyid_from_sk (sk, sig->keyid);
sig->digest_algo = hash_for(sk);
sig->pubkey_algo = sk->pubkey_algo;
if(timestamp)
sig->timestamp = timestamp;