17 lines
483 B
Diff
17 lines
483 B
Diff
Source: Me
|
|
Reason: fix build with libressl
|
|
Upstream: No, notified https://github.com/haiwen/ccnet/issues/122
|
|
|
|
--- a/lib/rsa.c 2017-05-28 03:23:49.499297000 +0200
|
|
+++ b/lib/rsa.c 2017-05-28 03:34:19.755854000 +0200
|
|
@@ -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)
|
|
{
|
|
|