summaryrefslogtreecommitdiffstats
path: root/g10
diff options
context:
space:
mode:
authorJustus Winter <justus@g10code.com>2017-06-07 15:38:50 +0200
committerJustus Winter <justus@g10code.com>2017-06-07 16:54:42 +0200
commit21fc2508c979a8202dd8ca7fa7b801e0d62a5ceb (patch)
tree9ad2109b53bdb603461b8ead3c9473a20ff7988c /g10
parentcommon,gpg: Move the compliance option printer. (diff)
downloadgnupg2-21fc2508c979a8202dd8ca7fa7b801e0d62a5ceb.tar.xz
gnupg2-21fc2508c979a8202dd8ca7fa7b801e0d62a5ceb.zip
common,gpg,sm: Initialize compliance module.
* common/compliance.c (gnupg_initialize_compliance): New function. * common/compliance.h (gnupg_initialize_compliance): New prototype. * g10/gpg.c (main): Use the new function. * sm/gpgsm.c (main): Likewise. GnuPG-bug-id: 3191 Signed-off-by: Justus Winter <justus@g10code.com>
Diffstat (limited to 'g10')
-rw-r--r--g10/gpg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/g10/gpg.c b/g10/gpg.c
index fbda4243d..f01c82d00 100644
--- a/g10/gpg.c
+++ b/g10/gpg.c
@@ -2327,6 +2327,9 @@ main (int argc, char **argv)
dotlock_create (NULL, 0); /* Register lock file cleanup. */
+ /* Tell the compliance module who we are. */
+ gnupg_initialize_compliance (GNUPG_MODULE_NAME_GPG);
+
opt.autostart = 1;
opt.session_env = session_env_new ();
if (!opt.session_env)