diff options
author | Werner Koch <wk@gnupg.org> | 2002-04-12 20:54:34 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2002-04-12 20:54:34 +0200 |
commit | 7e07a397a009da4da1e21f8ce66fd7721b7a30c9 (patch) | |
tree | 12aeae79bc93b943aa9352c6c7933d303e6f9dfe /common | |
parent | * card.c (card_open): Return immediately when no reader is available. (diff) | |
download | gnupg2-7e07a397a009da4da1e21f8ce66fd7721b7a30c9.tar.xz gnupg2-7e07a397a009da4da1e21f8ce66fd7721b7a30c9.zip |
* 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.
Diffstat (limited to 'common')
-rw-r--r-- | common/errors.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/errors.h b/common/errors.h index 58508c93f..22c827299 100644 --- a/common/errors.h +++ b/common/errors.h @@ -102,6 +102,7 @@ enum { GNUPG_Bad_PIN_Method = 73, GNUPG_Card_Not_Initialized = 74, GNUPG_Unsupported_Operation = 75, + GNUPG_Wrong_Key_Usage = 76, }; /* Status codes - fixme: should go into another file */ |