summaryrefslogtreecommitdiffstats
path: root/sm
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 /sm
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 'sm')
-rw-r--r--sm/gpgsm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sm/gpgsm.c b/sm/gpgsm.c
index 4b8077892..f749cfd28 100644
--- a/sm/gpgsm.c
+++ b/sm/gpgsm.c
@@ -947,6 +947,9 @@ main ( int argc, char **argv)
dotlock_create (NULL, 0); /* Register lockfile cleanup. */
+ /* Tell the compliance module who we are. */
+ gnupg_initialize_compliance (GNUPG_MODULE_NAME_GPGSM);
+
opt.autostart = 1;
opt.session_env = session_env_new ();
if (!opt.session_env)