Skip to content

Commit e25fb0d

Browse files
committed
Fix build with LibreSSL 3.5
1 parent d9111c2 commit e25fb0d

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

0 commit comments

Comments
 (0)