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 --- g10/gpg.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'g10/gpg.c') 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) -- cgit v1.2.3