mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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. --
This commit is contained in:
parent
ee013c5350
commit
f8075257af
6 changed files with 46 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue