$OpenBSD: patch-lib_rsa_c,v 1.1 2017/05/23 08:13:35 kirby Exp $

Index: lib/rsa.c
--- lib/rsa.c.orig
+++ lib/rsa.c
@@ -13,7 +13,7 @@
 
 /* Forward compatibility functions if libssl < 1.1.0. */
 
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
 
 int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d)
 {
