[ruby/openssl] Fix build with LibreSSL 3.5

https://github.com/ruby/openssl/commit/e25fb0d0d8
This commit is contained in:
Jeremy Evans 2022-03-25 13:11:31 -07:00 committed by Nobuyoshi Nakada
parent 09daf78fb5
commit aee36dd788

View File

@ -670,7 +670,7 @@ ossl_pkey_export_traditional(int argc, VALUE *argv, VALUE self, int to_der)
}
}
else {
#if OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(LIBRESSL_VERSION_NUMBER)
#if OSSL_OPENSSL_PREREQ(1, 1, 0) || OSSL_LIBRESSL_PREREQ(3, 5, 0)
if (!PEM_write_bio_PrivateKey_traditional(bio, pkey, enc, NULL, 0,
ossl_pem_passwd_cb,
(void *)pass)) {