summaryrefslogtreecommitdiffstats
path: root/common/compliance.h
diff options
context:
space:
mode:
authorJustus Winter <justus@g10code.com>2017-06-07 12:33:36 +0200
committerJustus Winter <justus@g10code.com>2017-06-07 16:53:32 +0200
commitf440cf73eab0b0e75e3cb2e8c9e70a77f20ef1dc (patch)
tree917ac3ec9b7994e2c916fe65970dfb281eabb4f4 /common/compliance.h
parentcommon,gpg,sm: Move the compliance option parser. (diff)
downloadgnupg2-f440cf73eab0b0e75e3cb2e8c9e70a77f20ef1dc.tar.xz
gnupg2-f440cf73eab0b0e75e3cb2e8c9e70a77f20ef1dc.zip
common,gpg: Move the compliance option printer.
* common/compliance.c (gnupg_compliance_option_string): New function. * common/compliance.h (gnupg_compliance_option_string): New prototype. * g10/encrypt.c (write_pubkey_enc_from_list): Update callsite. * g10/gpg.c (main): Likewise. * g10/keyedit.c (keyedit_menu): Likewise. * g10/pkclist.c (build_pk_list): Likewise. * g10/main.h (compliance_option_string): Remove prototype. * g10/misc.c (compliance_option_string): Remove function. GnuPG-bug-id: 3191 Signed-off-by: Justus Winter <justus@g10code.com>
Diffstat (limited to 'common/compliance.h')
-rw-r--r--common/compliance.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/compliance.h b/common/compliance.h
index 198447c6e..9cbcced7b 100644
--- a/common/compliance.h
+++ b/common/compliance.h
@@ -58,5 +58,7 @@ int gnupg_parse_compliance_option (const char *string,
struct gnupg_compliance_option options[],
size_t length,
int quiet);
+const char *gnupg_compliance_option_string (enum gnupg_compliance_mode compliance);
+
#endif /*GNUPG_COMMON_COMPLIANCE_H*/