[svn] GnuPG - r3983 - trunk/g10
svn author dshaw
cvs at cvs.gnupg.org
Sun Jan 1 18:59:58 CET 2006
Author: dshaw
Date: 2006-01-01 18:59:57 +0100 (Sun, 01 Jan 2006)
New Revision: 3983
Modified:
trunk/g10/ChangeLog
trunk/g10/sign.c
Log:
* sign.c (write_signature_packets): Lost a digest_algo line.
Modified: trunk/g10/ChangeLog
===================================================================
--- trunk/g10/ChangeLog 2006-01-01 17:48:54 UTC (rev 3982)
+++ trunk/g10/ChangeLog 2006-01-01 17:59:57 UTC (rev 3983)
@@ -1,5 +1,7 @@
2006-01-01 David Shaw <dshaw at 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
Modified: trunk/g10/sign.c
===================================================================
--- trunk/g10/sign.c 2006-01-01 17:48:54 UTC (rev 3982)
+++ trunk/g10/sign.c 2006-01-01 17:59:57 UTC (rev 3983)
@@ -655,6 +655,7 @@
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;
More information about the Gnupg-commits
mailing list