diff options
author | Justus Winter <[email protected]> | 2017-06-07 09:50:54 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2017-06-07 14:53:31 +0000 |
commit | 842d233d408457cfa9a8473a6748472956f44e84 (patch) | |
tree | e9805a911bb19472f463f6a0fe47aed7fef8ab9b /sm/gpgsm.h | |
parent | gpg: Improve compliance with CO_DE_VS. (diff) | |
download | gnupg-842d233d408457cfa9a8473a6748472956f44e84.tar.gz gnupg-842d233d408457cfa9a8473a6748472956f44e84.zip |
common,gpg,sm: Move the compliance option parser.
* common/compliance.c (gnupg_parse_compliance_option): New function.
* common/compliance.h (struct gnupg_compliance_option): New type.
(gnupg_parse_compliance_option): New prototype.
* g10/gpg.c (parse_compliance_option): Remove function.
(compliance_options): New variable.
(main): Adapt callsite.
* sm/gpgsm.c (main): Use the new common function.
* sm/gpgsm.h (opt): New field 'compliance'.
GnuPG-bug-id: 3191
Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | sm/gpgsm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sm/gpgsm.h b/sm/gpgsm.h index df96770f1..8c1f520de 100644 --- a/sm/gpgsm.h +++ b/sm/gpgsm.h @@ -34,6 +34,7 @@ #include "../common/audit.h" #include "../common/session-env.h" #include "../common/ksba-io-support.h" +#include "../common/compliance.h" #define MAX_DIGEST_LEN 64 @@ -144,6 +145,7 @@ struct OID per string. */ strlist_t ignored_cert_extensions; + enum gnupg_compliance_mode compliance; } opt; /* Debug values and macros. */ |