1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/openssl] Let OpenSSL choose the digest if digest for Openssl::OCSP::Request#sign is nil.

https://github.com/ruby/openssl/commit/a1f6cbc261
This commit is contained in:
Jarek Prokop 2022-04-12 09:44:21 +02:00 committed by Nobuyoshi Nakada
parent def445303a
commit 7a5a90e053

View file

@ -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))