* certlist.c (cert_usable_p): New.
authorWerner Koch <wk@gnupg.org>
Fri, 12 Apr 2002 18:54:34 +0000 (18:54 +0000)
committerWerner Koch <wk@gnupg.org>
Fri, 12 Apr 2002 18:54:34 +0000 (18:54 +0000)
commit7e07a397a009da4da1e21f8ce66fd7721b7a30c9
tree12aeae79bc93b943aa9352c6c7933d303e6f9dfe
parentface6377c14ee5492e99f2148c209956aa749dcc
* certlist.c (cert_usable_p): New.
(gpgsm_cert_use_sign_p,gpgsm_cert_use_encrypt_p): New.
(gpgsm_cert_use_verify_p,gpgsm_cert_use_decrypt_p): New.
(gpgsm_add_to_certlist): Check the key usage.
* sign.c (gpgsm_sign): Ditto.
* verify.c (gpgsm_verify): Print a message wehn an unsuitable
certificate was used.
* decrypt.c (gpgsm_decrypt): Ditto
* keylist.c (print_capabilities): Determine values from the cert.
common/errors.h
sm/ChangeLog
sm/certlist.c
sm/decrypt.c
sm/gpgsm.h
sm/keylist.c
sm/sign.c
sm/verify.c