aboutsummaryrefslogtreecommitdiffstats
path: root/databases/sqlcipher
diff options
context:
space:
mode:
authorBernard Spil <brnrd@FreeBSD.org>2018-06-12 02:35:25 +0800
committerBernard Spil <brnrd@FreeBSD.org>2018-06-12 02:35:25 +0800
commit6e9fec3207bc30f8670e761df0f944362121224a (patch)
tree17e0c03528ecd425d4e2a93d2b62055ec4690d01 /databases/sqlcipher
parent82753dfe3f8af4ac0dc0da51bf70c4358e6874c1 (diff)
downloadfreebsd-ports-gnome-6e9fec3207bc30f8670e761df0f944362121224a.tar.gz
freebsd-ports-gnome-6e9fec3207bc30f8670e761df0f944362121224a.tar.zst
freebsd-ports-gnome-6e9fec3207bc30f8670e761df0f944362121224a.zip
databases/sqlcipher: Fix build with LibreSSL 2.7
- LibreSSL 2.7 adds OpenSSL 1.1 ABI PR: 228248 Approved by: maintainer (jharris widomaker com)
Diffstat (limited to 'databases/sqlcipher')
-rw-r--r--databases/sqlcipher/files/patch-sqlcipher-libressl-2.731
1 files changed, 31 insertions, 0 deletions
diff --git a/databases/sqlcipher/files/patch-sqlcipher-libressl-2.7 b/databases/sqlcipher/files/patch-sqlcipher-libressl-2.7
new file mode 100644
index 000000000000..bda45d959ea3
--- /dev/null
+++ b/databases/sqlcipher/files/patch-sqlcipher-libressl-2.7
@@ -0,0 +1,31 @@
+diff --git a/src/crypto_openssl.c b/src/crypto_openssl.c
+index a45db3b..4344076 100644
+--- src/crypto_openssl.c.orig
++++ src/crypto_openssl.c
+@@ -47,7 +47,7 @@ static unsigned int openssl_external_init = 0;
+ static unsigned int openssl_init_count = 0;
+ static sqlite3_mutex* openssl_rand_mutex = NULL;
+
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000)
+ static HMAC_CTX *HMAC_CTX_new(void)
+ {
+ HMAC_CTX *ctx = OPENSSL_malloc(sizeof(*ctx));
+@@ -117,7 +117,7 @@ static int sqlcipher_openssl_activate(void *ctx) {
+
+ if(openssl_init_count == 0 && openssl_external_init == 0) {
+ /* if the library was not externally initialized, then should be now */
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000)
+ OpenSSL_add_all_algorithms();
+ #endif
+ }
+@@ -154,7 +154,7 @@ static int sqlcipher_openssl_deactivate(void *ctx) {
+ Note: this code will only be reached if OpensSSL_add_all_algorithms()
+ is called by SQLCipher internally. This should prevent SQLCipher from
+ "cleaning up" openssl when it was initialized externally by the program */
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000)
+ EVP_cleanup();
+ #endif
+ } else {
24:27 +0800'>2018-05-021-1/+1 * archivers/urbackup-client: add missing UIDs/GIDsKurt Jaeger2018-04-161-1/+1 * Register UID/GID for the upcoming openHAB2 ports.Alexander Leidinger2018-04-131-1/+1 * multimedia/tautulli: Update to 2.0.28Mark Felder2018-04-071-1/+1 * sysutils/logstash6: Run as non-root by defaultMark Felder2018-04-071-2/+2 * New ports required for gitlab update to 10.5.x.Matthias Fechner2018-04-071-1/+1 * Add net-im/matterircd: IRC bridge for Mattermost and SlackDanilo G. Baio2018-03-311-1/+1 * Fix format of mqttwarn entryCarlos J. Puga Medina2018-03-271-1/+1 * Subscribe to MQTT topics and notify pluggable servicesDan Langille2018-03-271-1/+1 * net/opensips: Update 2.2.3 -> 2.2.6Yuri Victorovich2018-03-241-1/+1 * New port: databases/go-carbonKurt Jaeger2018-03-201-1/+1 * security/acme-client: Use dedicated '_acme' userBernard Spil2018-03-101-1/+1 * New port: www/osrm-backendKurt Jaeger2018-02-141-1/+1 * Add new port: www/mattermost-webappOlivier Cochard2018-02-021-1/+1 * devel/gogs: Changed user from gogs to git; Moved ini file under /usr/local/etcYuri Victorovich2017-12-191-1/+0 * new port: databases/arangodb32Nikolai Lifanov2017-11-211-1/+1 * net-p2p/monero-cli: Add a new port - a secure, private, and untraceable crypt...Vasil Dimov2017-11-091-1/+1 * Import net/traefik, a high availability reverse proxy and load balancerThomas Zander2017-10-141-1/+1 * Add litecoin user missed in r449977Steve Wills2017-09-171-1/+1 * net/kafka: create portSteve Wills2017-09-071-1/+1 * New port: x11/sddmTobias C. Berner2017-09-071-1/+1 * sysutils/zap: Update to version 0.7.2 and add zap user/groupJoseph Mingrone2017-08-311-1/+1 * CockroachDB is a distributed SQL database built on a transactionalKirill Ponomarev2017-08-211-1/+1 * www/selenium: add UIDs and GIDsKurt Jaeger2017-08-171-1/+1 * Welcome net-p2p/jackett to the treeMark Felder2017-08-041-1/+1 * Reserve GID for _dnscrypt-proxy userMark Felder2017-08-041-1/+1 * Reserve GID for couchpotato userMark Felder2017-08-041-1/+1 * Reserve GID for synapse userMark Felder2017-08-041-1/+1 * Reserve GID for sonarr and radarrMark Felder2017-08-041-2/+2 * This is tool to build a local copy of the National Vulnerabilities Database(NVD)Richard Gallamore2017-07-291-1/+1 * UIDs, GIDs: Create new IDs for prometheus alertmanager.Boris Samorodov2017-07-181-1/+1 * - Fix LICENSECarlos J. Puga Medina2017-07-171-1/+1 * Commit the anvil user/group (missed in original commit) so it buildsDan Langille2017-07-151-1/+1 * New port: net/frrOlivier Cochard2017-06-301-2/+2 * New port, net-im/mastodon: GNU Social-compatible microblogging serverJoseph Mingrone2017-05-271-1/+1 * Add rc.d scriptSunpoet Po-Chuan Hsieh2017-05-211-1/+1 * A pure Unix shell script implementing ACME client protocolDan Langille2017-05-201-1/+1 * Modernizing port, several improvements were done:Renato Botelho2017-04-251-1/+1 * Add UID/GID for gitlab-runnerSteve Wills2017-04-071-1/+1 * net/ceph-devel: Add port to the tree.Mahdi Mokhtari2017-03-301-1/+1 * add ports for Samhain Intrusion Detection SystemNikolai Lifanov2017-03-131-1/+1 * ClickHouse is an open-source column-oriented database managementDmitry Marakasov2017-03-021-1/+1 * www/minio: update to 2017.02.16.01.47.30Steve Wills2017-02-231-1/+1 * Update net/chrony: enable privilege separation and other minor changes.Kirill Ponomarev2017-02-141-1/+1 * www/uwsgi: Further rc script security improvementsMark Felder2017-02-031-1/+1 * new port: net-mgmt/netdataNikolai Lifanov2017-01-271-1/+1 * Add misc/py-cinder, Block Storage service for OpenStackRoman Bogorodskiy2017-01-151-1/+1 * Rename sysutils/istatd to sysutils/istatserver and update to 3.01Babak Farrokhi2017-01-101-1/+1 * Add UID/GID for net-mgmt/rubygem-oxidizedSteve Wills2017-01-041-1/+1 * Add x11/lightdm and x11/lightdm-gtk-greeter.Ben Woods2016-12-261-1/+1 * - Add rc.d scriptDmitry Marakasov2016-12-221-1/+1 * Add www/py-horizon, OpenStack DashboardRoman Bogorodskiy2016-12-201-1/+1 * New port: dns/dqKurt Jaeger2016-12-191-1/+1 * Add emulators/py-nova 14.0.2, Openstack Compute ServiceRoman Bogorodskiy2016-12-181-1/+1 * - Add a UID/GID for bitcoin.Marcelo Araujo2016-11-251-1/+1 * - Create znc user/groupDmitry Marakasov2016-11-23