dshaw committed to gnupg/g10
cvs@cvs.gnupg.org
cvs@cvs.gnupg.org
Wed, 05 Jun 2002 01:18:37 +0200
Date: Wednesday June 5, 2002 @ 1:18
Author: dshaw
Update of /cvs/gnupg/gnupg/g10
In directory trithemius:/tmp/cvs-serv20736
Modified Files:
Tag: STABLE-BRANCH-1-0
ChangeLog encode.c exec.c keydb.h pkclist.c sign.c
Log Message:
* sign.c (hash_for, sign_file): When encrypting and signing at the same
time, consult the various hash prefs to pick a hash algorithm to use.
Pass in a 160-bit hint if any of the signing keys are DSA.
* keydb.h, pkclist.c (select_algo_from_prefs, algo_available): Pass a
"hints" opaque pointer in to let the caller give hints as to what
algorithms would be acceptable. The only current hint is for
PREFTYPE_HASH to require a 160-bit hash for DSA. Change all callers in
encode.c (encode_crypt, encrypt_filter) and sign.c (sign_file). If we
settle on MD5 as the best algorithm based solely on recepient keys and
SHA1 is also a possibility, use SHA1 unless the user intentionally chose
MD5. This is as per 2440:13.
* exec.c (make_tempdir): Fix duplicated filename problem.
File: ChangeLog Status: Up-to-date
File: encode.c Status: Up-to-date
File: exec.c Status: Up-to-date
File: keydb.h Status: Up-to-date
File: pkclist.c Status: Up-to-date
File: sign.c Status: Up-to-date