.include <bsd.port.pre.mk>
.if ${SSL_DEFAULT:Mlibressl*}
IGNORE= Detected LibreSSL (missing RSA_get0_factors)
.endif
post-patch:
@${REINPLACE_CMD} -E 's| -fsanitize=[a-z-]+| |g' \
${WRKSRC}/hardened.pri
--- src/main.cpp.orig 2016-11-04 22:05:33 UTC
+++ src/main.cpp
@@ -86,7 +86,7 @@ int main(int argc, char *argv[])
initTranslation();
/* Initialize OpenSSL's allocator */
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
CRYPTO_malloc_init();
#else
OPENSSL_malloc_init();
--- 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>
void RSA_get0_factors(const RSA *r, const BIGNUM **p, const BIGNUM **q)
{
*p = r->p;