aboutsummaryrefslogtreecommitdiffstats
path: root/sm/gpgsm.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2022-03-08 18:06:30 +0000
committerWerner Koch <[email protected]>2022-03-08 18:28:16 +0000
commitf8075257afad4c7a41cd4409e334670a0097b5b8 (patch)
treee6de29104400b4a08d95746570ffcb0e69a8d520 /sm/gpgsm.h
parentgpg: New option --require-compliance. (diff)
downloadgnupg-f8075257afad4c7a41cd4409e334670a0097b5b8.tar.gz
gnupg-f8075257afad4c7a41cd4409e334670a0097b5b8.zip
gpgsm: New option --require-compliance
* sm/gpgsm.c (oRequireCompliance): New. (opts): Add --require-compliance. (main): Set option. * sm/gpgsm.h (opt): Add field require_compliance. (gpgsm_errors_seen): Declare. * sm/verify.c (gpgsm_verify): Emit error if non de-vs compliant. * sm/encrypt.c (gpgsm_encrypt): Ditto. * sm/decrypt.c (gpgsm_decrypt): Ditto. --
Diffstat (limited to 'sm/gpgsm.h')
-rw-r--r--sm/gpgsm.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sm/gpgsm.h b/sm/gpgsm.h
index acb9332ba..0eec0c025 100644
--- a/sm/gpgsm.h
+++ b/sm/gpgsm.h
@@ -155,8 +155,13 @@ struct
* sunch an OID during --learn-card. */
strlist_t ignore_cert_with_oid;
+ /* The current compliance mode. */
enum gnupg_compliance_mode compliance;
+ /* Fail if an operation can't be done in the requested compliance
+ * mode. */
+ int require_compliance;
+
/* Enable creation of authenticode signatures. */
int authenticode;
@@ -274,6 +279,8 @@ struct rootca_flags_s
/*-- gpgsm.c --*/
+extern int gpgsm_errors_seen;
+
void gpgsm_exit (int rc);
void gpgsm_init_default_ctrl (struct server_control_s *ctrl);
void gpgsm_deinit_default_ctrl (ctrl_t ctrl);