aboutsummaryrefslogtreecommitdiffstats
path: root/g10/gpg.c
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2017-06-07 13:38:50 +0000
committerJustus Winter <[email protected]>2017-06-07 14:54:42 +0000
commit21fc2508c979a8202dd8ca7fa7b801e0d62a5ceb (patch)
tree9ad2109b53bdb603461b8ead3c9473a20ff7988c /g10/gpg.c
parentcommon,gpg: Move the compliance option printer. (diff)
downloadgnupg-21fc2508c979a8202dd8ca7fa7b801e0d62a5ceb.tar.gz
gnupg-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 <[email protected]>
Diffstat (limited to 'g10/gpg.c')
-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)