ports/net-im/ricochet/files/patch-src_utils_CryptoKey.cpp
Bernard Spil 1cdca8b5d9 net-im/ricochet: Fix build with LibreSSL
- Remove IGNORE for LibreSSL
 - Add checks for LIBRESSL_VERSION_NUMBER

PR:		217350
Approved by:	Yuri Victorovich <yuri@rawbw.com> (maintainer)
Obtained from:	https://github.com/ricochet-im/ricochet/pull/529
2017-03-26 10:37:25 +00:00

11 lines
367 B
C++

--- src/utils/CryptoKey.cpp.orig 2016-11-04 22:05:33 UTC
+++ src/utils/CryptoKey.cpp
@@ -39,7 +39,7 @@
#include <openssl/bio.h>
#include <openssl/pem.h>
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
void RSA_get0_factors(const RSA *r, const BIGNUM **p, const BIGNUM **q)
{
*p = r->p;