aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2016-09-13 02:20:23 +0800
committermarino <marino@FreeBSD.org>2016-09-13 02:20:23 +0800
commitc0c0619e3296a975759129b042cbb7622c589884 (patch)
tree2c2939445962b8309b9d34ac97923e57e4c43df5 /security
parent3260cd73e4e292e66f9e5bd593e3ccf3934f36b3 (diff)
downloadfreebsd-ports-gnome-c0c0619e3296a975759129b042cbb7622c589884.tar.gz
freebsd-ports-gnome-c0c0619e3296a975759129b042cbb7622c589884.tar.zst
freebsd-ports-gnome-c0c0619e3296a975759129b042cbb7622c589884.zip
security/xca: Fix build with LibreSSL
Diffstat (limited to 'security')
-rw-r--r--security/xca/Makefile4
-rw-r--r--security/xca/files/patch-lib_pki__temp.cpp11
2 files changed, 13 insertions, 2 deletions
diff --git a/security/xca/Makefile b/security/xca/Makefile
index ae989b779919..291fb36e63c1 100644
--- a/security/xca/Makefile
+++ b/security/xca/Makefile
@@ -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}
diff --git a/security/xca/files/patch-lib_pki__temp.cpp b/security/xca/files/patch-lib_pki__temp.cpp
new file mode 100644
index 000000000000..311553f12f36
--- /dev/null
+++ b/security/xca/files/patch-lib_pki__temp.cpp
@@ -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