summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2017-09-13 09:18:15 +0200
committerWerner Koch <wk@gnupg.org>2017-09-13 09:18:15 +0200
commit006ca124ed95845d43af8c14d7ab2bc085b47b4c (patch)
tree42e7e438960434ff3cb9665a115310a2fb80739e
parentwks: Add hack for the broken posteo system (diff)
downloadgnupg2-006ca124ed95845d43af8c14d7ab2bc085b47b4c.tar.xz
gnupg2-006ca124ed95845d43af8c14d7ab2bc085b47b4c.zip
gpgv: Initialize compliance checker.
* g10/gpgv.c (main): Call gnupg_initialize_compliance. -- The compliance checker needs to be initialize so that it won't let spit out a "not suitable" message. We use the module name of gpg. Because there is no option to change the compliance mode in gpgv we will always be in the default (CO_GNUPG) mode. It also does not make much sense to have it here because gpgv expects a "curated" keyring. GnuPG-bug-id: 3404 Signed-off-by: Werner Koch <wk@gnupg.org>
-rw-r--r--g10/gpgv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/gpgv.c b/g10/gpgv.c
index fb274b337..c43067dfd 100644
--- a/g10/gpgv.c
+++ b/g10/gpgv.c
@@ -202,6 +202,7 @@ main( int argc, char **argv )
dotlock_disable ();
gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0);
additional_weak_digest("MD5");
+ gnupg_initialize_compliance (GNUPG_MODULE_NAME_GPG);
pargs.argc = &argc;
pargs.argv = &argv;