Home GnuPG
Diffusion GnuPG 8ef0f53cb001

common: Make the compliance check more robust.

Description

common: Make the compliance check more robust.

* common/compliance.c (get_compliance_cache): New.
(gnupg_rng_is_compliant): Use per mode cache.
(gnupg_gcrypt_is_compliant): Ditto.

This addresses the problem tha the check might be called with
different compliance values and thus it should return the
corresponding cached result.

Backported from 2.3. Added PGP6 support which was removed from 2.3.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Thu, Apr 1, 1:08 PM
Parents
rG9feffc03f364: gpgconf: Return a new pseudo option compliance_de_vs.
Branches
Unknown
Tags
Unknown