Skip to content

Commit 1f4c9d8

Browse files
jeremyevansrhenium
authored andcommitted
Fix build with LibreSSL 3.5
[ This is a backport to the 3.0 branch. ] (cherry picked from commit e25fb0d)
1 parent 394ca93 commit 1f4c9d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/openssl/ossl_pkey.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ ossl_pkey_export_traditional(int argc, VALUE *argv, VALUE self, int to_der)
710710
}
711711
}
712712
else {
713-
#if OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(LIBRESSL_VERSION_NUMBER)
713+
#if OSSL_OPENSSL_PREREQ(1, 1, 0) || OSSL_LIBRESSL_PREREQ(3, 5, 0)
714714
if (!PEM_write_bio_PrivateKey_traditional(bio, pkey, enc, NULL, 0,
715715
ossl_pem_passwd_cb,
716716
(void *)pass)) {

0 commit comments

Comments
 (0)