summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorJarek Prokop <jprokop@redhat.com>2022-04-12 09:44:21 +0200
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-07-08 23:18:20 +0900
commit7a5a90e05351262593ca6e4c1c6b8e797d8ab9c9 (patch)
tree88d34c564f150bee783080f7197b620e254b2ee2 /ext
parentdef445303a93c69dd16a9b849b9171d4e89c6dc5 (diff)
[ruby/openssl] Let OpenSSL choose the digest if digest for Openssl::OCSP::Request#sign is nil.
https://github.com/ruby/openssl/commit/a1f6cbc261
Diffstat (limited to 'ext')
-rw-r--r--ext/openssl/ossl_ocsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openssl/ossl_ocsp.c b/ext/openssl/ossl_ocsp.c
index 1e87484afc..543df2715e 100644
--- a/ext/openssl/ossl_ocsp.c
+++ b/ext/openssl/ossl_ocsp.c
@@ -382,7 +382,7 @@ ossl_ocspreq_sign(int argc, VALUE *argv, VALUE self)
if (!NIL_P(flags))
flg = NUM2INT(flags);
if (NIL_P(digest))
- md = EVP_sha1();
+ md = NULL;
else
md = ossl_evp_get_digestbyname(digest);
if (NIL_P(certs))