[前][次][番号順一覧][スレッド一覧]

ruby-changes:72474

From: Jarek <ko1@a...>
Date: Sat, 9 Jul 2022 00:31:58 +0900 (JST)
Subject: [ruby-changes:72474] 7a5a90e053 (master): [ruby/openssl] Let OpenSSL choose the digest if digest for Openssl::OCSP::Request#sign is nil.

https://git.ruby-lang.org/ruby.git/commit/?id=7a5a90e053

From 7a5a90e05351262593ca6e4c1c6b8e797d8ab9c9 Mon Sep 17 00:00:00 2001
From: Jarek Prokop <jprokop@r...>
Date: Tue, 12 Apr 2022 09:44:21 +0200
Subject: [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) https://github.com/ruby/ruby/blob/trunk/ext/openssl/ossl_ocsp.c#L382
     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))
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]