From 21fc2508c979a8202dd8ca7fa7b801e0d62a5ceb Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Wed, 7 Jun 2017 15:38:50 +0200 Subject: 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 --- sm/gpgsm.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sm/gpgsm.c') 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) -- cgit v1.2.3