Home GnuPG
Diffusion GnuPG 1d1ec1146c04

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.

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

Details

Provenance
wernerAuthored on Thu, Apr 1, 1:08 PM
Parents
rGc727951a2440: card: New flag --reread for LIST.
Branches
Unknown
Tags
Unknown