From 7e07a397a009da4da1e21f8ce66fd7721b7a30c9 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 12 Apr 2002 18:54:34 +0000 Subject: * 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 | 1 + 1 file changed, 1 insertion(+) (limited to 'common') 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 */ -- cgit v1.2.3