* certlist.c (gpgsm_add_to_certlist): Fixed locating of a
authorWerner Koch <wk@gnupg.org>
Thu, 20 Jun 2002 10:43:02 +0000 (10:43 +0000)
committerWerner Koch <wk@gnupg.org>
Thu, 20 Jun 2002 10:43:02 +0000 (10:43 +0000)
commit42cf865350db37e80ab923bdc53e041cf9487501
treef64fd5307b8491083ed07467c3ddee106390508b
parent52146943d10e5a72ef8b4fef8e4c24a3dbb6c5a1
* certlist.c (gpgsm_add_to_certlist): Fixed locating of a
certificate with the required key usage.

* gpgsm.c (main): Fixed a segv when using --outfile without an
argument.

* keylist.c (print_capabilities): Also check for non-repudiation
and data encipherment.
* certlist.c (cert_usage_p): Test for signing and encryption was
swapped.  Add a case for certification usage, handle
non-repudiation and data encipherment.
(gpgsm_cert_use_cert_p): New.
(gpgsm_add_to_certlist): Added a CTRL argument and changed all
callers to pass it.
* certpath.c (gpgsm_validate_path): Use it here to print a status
message. Added a CTRL argument and changed all callers to pass it.
* decrypt.c (gpgsm_decrypt): Print a status message for wrong key
usage.
* verify.c (gpgsm_verify): Ditto.
* keydb.c (classify_user_id): Allow a colon delimited fingerprint.
12 files changed:
sm/ChangeLog
sm/call-dirmngr.c
sm/certchain.c
sm/certlist.c
sm/certpath.c
sm/decrypt.c
sm/gpgsm.c
sm/gpgsm.h
sm/keydb.c
sm/keylist.c
sm/server.c
sm/verify.c