aboutsummaryrefslogtreecommitdiffstats
path: root/sm/encrypt.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2021-01-28 14:48:08 +0000
committerWerner Koch <[email protected]>2021-01-28 14:48:08 +0000
commit90c514868ff5fcf6d39490d4874ac3a31ba9e85f (patch)
tree8dc8d09146841ea634965c2d3a70234d93d33572 /sm/encrypt.c
parentscd:p15: Make file selection more robust. (diff)
downloadgnupg-90c514868ff5fcf6d39490d4874ac3a31ba9e85f.tar.gz
gnupg-90c514868ff5fcf6d39490d4874ac3a31ba9e85f.zip
Include the library version in the compliance checks.
* common/compliance.c (gnupg_gcrypt_is_compliant): New. (gnupg_rng_is_compliant): Also check library version. * g10/mainproc.c (proc_encrypted): Use new function. (check_sig_and_print): Ditto. * sm/decrypt.c (gpgsm_decrypt): Ditto. * sm/encrypt.c (gpgsm_encrypt): Ditto. * sm/verify.c (gpgsm_verify): Ditto -- This will eventually allow us to declare Libgcrypt 1.9 to be de-vs compliant. GnuPG can use this information then for its own checks. As of now GnuPG tests the version of the used library but that is a bit cumbersome to maintain. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'sm/encrypt.c')
-rw-r--r--sm/encrypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sm/encrypt.c b/sm/encrypt.c
index 34a5e878b..fbd88b6cd 100644
--- a/sm/encrypt.c
+++ b/sm/encrypt.c
@@ -807,7 +807,7 @@ gpgsm_encrypt (ctrl_t ctrl, certlist_t recplist, int data_fd, estream_t out_fp)
}
}
- if (compliant)
+ if (compliant && gnupg_gcrypt_is_compliant (CO_DE_VS))
gpgsm_status (ctrl, STATUS_ENCRYPTION_COMPLIANCE_MODE,
gnupg_status_compliance_flag (CO_DE_VS));