diff options
author | David Shaw <[email protected]> | 2006-01-01 17:59:57 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2006-01-01 17:59:57 +0000 |
commit | 5bce704dd3c00a42bbcd40bf8f4084db355c8c66 (patch) | |
tree | 21f56315a90977f820664101e38cca59f7b942ab | |
parent | * sign.c (hash_for): Add code to detect if the sk lives on a smart (diff) | |
download | gnupg-5bce704dd3c00a42bbcd40bf8f4084db355c8c66.tar.gz gnupg-5bce704dd3c00a42bbcd40bf8f4084db355c8c66.zip |
* sign.c (write_signature_packets): Lost a digest_algo line.
-rw-r--r-- | g10/ChangeLog | 2 | ||||
-rw-r--r-- | g10/sign.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/g10/ChangeLog b/g10/ChangeLog index 1ffb70d28..4e9ddf46e 100644 --- a/g10/ChangeLog +++ b/g10/ChangeLog @@ -1,5 +1,7 @@ 2006-01-01 David Shaw <[email protected]> + * 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 diff --git a/g10/sign.c b/g10/sign.c index fae54756a..2e64abb20 100644 --- a/g10/sign.c +++ b/g10/sign.c @@ -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; |