From 842d233d408457cfa9a8473a6748472956f44e84 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Wed, 7 Jun 2017 11:50:54 +0200 Subject: 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 --- sm/gpgsm.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sm/gpgsm.h') 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. */ -- cgit v1.2.3