diff options
author | Justus Winter <justus@g10code.com> | 2017-06-07 15:38:50 +0200 |
---|---|---|
committer | Justus Winter <justus@g10code.com> | 2017-06-07 16:54:42 +0200 |
commit | 21fc2508c979a8202dd8ca7fa7b801e0d62a5ceb (patch) | |
tree | 9ad2109b53bdb603461b8ead3c9473a20ff7988c /sm | |
parent | common,gpg: Move the compliance option printer. (diff) | |
download | gnupg2-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.c | 3 |
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) |