mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-18 08:02:48 +00:00
security/xca: Fix build with LibreSSL
This commit is contained in:
parent
20fe00acc8
commit
21e13c5283
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=421947
@ -14,8 +14,8 @@ LICENSE_FILE= ${WRKSRC}/COPYRIGHT
|
||||
|
||||
LIB_DEPENDS= libltdl.so:devel/libltdl
|
||||
|
||||
USES= desktop-file-utils gmake localbase pkgconfig shared-mime-info
|
||||
USE_OPENSSL= yes
|
||||
USES= desktop-file-utils gmake localbase pkgconfig \
|
||||
shared-mime-info ssl
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --with-openssl=${OPENSSLDIR} \
|
||||
--with-qt=${QT_PREFIX}
|
||||
|
11
security/xca/files/patch-lib_pki__temp.cpp
Normal file
11
security/xca/files/patch-lib_pki__temp.cpp
Normal file
@ -0,0 +1,11 @@
|
||||
--- lib/pki_temp.cpp.orig 2015-10-10 12:54:12 UTC
|
||||
+++ lib/pki_temp.cpp
|
||||
@@ -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
|
Loading…
Reference in New Issue
Block a user