diff options
Diffstat (limited to 'src/lib/libcrypto/ocsp/ocsp_cl.c')
-rw-r--r-- | src/lib/libcrypto/ocsp/ocsp_cl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/libcrypto/ocsp/ocsp_cl.c b/src/lib/libcrypto/ocsp/ocsp_cl.c index 9c14d9da27..17bab5fc59 100644 --- a/src/lib/libcrypto/ocsp/ocsp_cl.c +++ b/src/lib/libcrypto/ocsp/ocsp_cl.c | |||
@@ -155,6 +155,7 @@ int OCSP_request_sign(OCSP_REQUEST *req, | |||
155 | goto err; | 155 | goto err; |
156 | 156 | ||
157 | if (!(req->optionalSignature = sig = OCSP_SIGNATURE_new())) goto err; | 157 | if (!(req->optionalSignature = sig = OCSP_SIGNATURE_new())) goto err; |
158 | if (!dgst) dgst = EVP_sha1(); | ||
158 | if (key) | 159 | if (key) |
159 | { | 160 | { |
160 | if (!X509_check_private_key(signer, key)) | 161 | if (!X509_check_private_key(signer, key)) |