Skip to content

Commit

Permalink
HBSD: security/xca: Fix build problems with LibreSSL
Browse files Browse the repository at this point in the history
Signed-off-by: Bernard Spil <brnrd@FreeBSD.org>
  • Loading branch information
Sp1l committed Apr 15, 2016
1 parent 2be17d8 commit 89c6528
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions security/xca/files/patch-lib_pki__temp.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
$OpenBSD: patch-lib_pki_temp_cpp,v 1.1 2015/09/12 20:40:49 sthen Exp $
--- lib/pki_temp.cpp.orig Tue Sep 8 20:46:15 2015
+++ lib/pki_temp.cpp Tue Sep 8 20:47:00 2015
@@ -363,7 +363,7 @@ BIO *pki_temp::pem(BIO *b, int format)
QByteArray ba = toExportData();
if (!b)
b = BIO_new(BIO_s_mem());
-#if OPENSSL_VERSION_NUMBER < 0x10002000L
+#if OPENSSL_VERSION_NUMBER < 0x10002000L || defined(LIBRESSL_VERSION_NUMBER)
PEM_write_bio(b, PEM_STRING_XCA_TEMPLATE, (char*)"",
(unsigned char*)(ba.data()), ba.size());
#else

0 comments on commit 89c6528

Please sign in to comment.