From 7a5a90e05351262593ca6e4c1c6b8e797d8ab9c9 Mon Sep 17 00:00:00 2001 From: Jarek Prokop Date: Tue, 12 Apr 2022 09:44:21 +0200 Subject: [PATCH] [ruby/openssl] Let OpenSSL choose the digest if digest for Openssl::OCSP::Request#sign is nil. https://github.com/ruby/openssl/commit/a1f6cbc261 --- ext/openssl/ossl_ocsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))