aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/ocsp.c
diff options
context:
space:
mode:
Diffstat (limited to 'dirmngr/ocsp.c')
-rw-r--r--dirmngr/ocsp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/dirmngr/ocsp.c b/dirmngr/ocsp.c
index 40e282484..eb24e2954 100644
--- a/dirmngr/ocsp.c
+++ b/dirmngr/ocsp.c
@@ -165,6 +165,10 @@ do_ocsp_request (ctrl_t ctrl, ksba_ocsp_t ocsp,
return err;
}
+ /* Tell Libksba to use SHA256 for hashing elements of the CERTID. */
+ if ((opt.compat_flags & COMPAT_OCSP_SHA256_CERTID))
+ ksba_ocsp_set_nonce (ocsp, NULL, 32);
+
{
size_t n;
unsigned char nonce[32];