aboutsummaryrefslogtreecommitdiffstats
path: root/common/errors.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2002-04-12 18:54:34 +0000
committerWerner Koch <[email protected]>2002-04-12 18:54:34 +0000
commit7e07a397a009da4da1e21f8ce66fd7721b7a30c9 (patch)
tree12aeae79bc93b943aa9352c6c7933d303e6f9dfe /common/errors.h
parent* card.c (card_open): Return immediately when no reader is available. (diff)
downloadgnupg-7e07a397a009da4da1e21f8ce66fd7721b7a30c9.tar.gz
gnupg-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/errors.h')
-rw-r--r--common/errors.h1
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 */