Home GnuPG
Diffusion GnuPG 6e23416fe61d

gpg: Disable compliance module for other GnuPG components.

Description

gpg: Disable compliance module for other GnuPG components.

* common/compliance.c (gnupg_{pk,cipher,digest}_is_compliant): Return
false if the module is not initialized.
(gnupg_{pk,cipher,digest}_is_allowed): Return true if the module is
not initialized.
(gnupg_status_compliance_flag): Do not assert that the module is
initialized.
(gnupg_parse_compliance_option): Likewise.
(gnupg_compliance_option_string): Likewise.

This implements a default policy for modules not explicitly using the
compliance module. The default policy is to allow all algorithms, but
mark none of them as compliant.

Fixes gpgv.

  • GnuPG-bug-id: T3210
  • Signed-off-by: Justus Winter <justus@g10code.com>

Details

Provenance
justusAuthored on Jun 19 2017, 11:00 AM
Parents
rG9b12b45aa5e6: gpg: Check and fix keys on import.
Branches
Unknown
Tags
Unknown
Tasks
T3210: assertion failure in compliance.c when using gpgv