mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
* verify.c (gpgsm_verify): Fixed for changes API of gcry_md_info.
* certchain.c (unknown_criticals): Fixed an error code test.
This commit is contained in:
parent
2f3d309750
commit
2f2eb1d202
3 changed files with 13 additions and 2 deletions
|
@ -286,11 +286,16 @@ gpgsm_verify (CTRL ctrl, int in_fd, int data_fd, FILE *out_fp)
|
|||
&msgdigest, &msgdigestlen);
|
||||
if (!err)
|
||||
{
|
||||
size_t is_enabled;
|
||||
|
||||
algoid = ksba_cms_get_digest_algo (cms, signer);
|
||||
algo = gcry_md_map_name (algoid);
|
||||
if (DBG_X509)
|
||||
log_debug ("signer %d - digest algo: %d\n", signer, algo);
|
||||
if ( !gcry_md_info (data_md, GCRYCTL_IS_ALGO_ENABLED, &algo, NULL) )
|
||||
is_enabled = sizeof algo;
|
||||
if ( gcry_md_info (data_md, GCRYCTL_IS_ALGO_ENABLED,
|
||||
&algo, &is_enabled)
|
||||
|| !is_enabled)
|
||||
{
|
||||
log_error ("digest algo %d has not been enabled\n", algo);
|
||||
goto next_signer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue