* sign.c (write_signature_packets): Lost a digest_algo line.
authorDavid Shaw <dshaw@jabberwocky.com>
Sun, 1 Jan 2006 17:59:57 +0000 (17:59 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Sun, 1 Jan 2006 17:59:57 +0000 (17:59 +0000)
g10/ChangeLog
g10/sign.c

index 1ffb70d..4e9ddf4 100644 (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
index fae5475..2e64abb 100644 (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;