ports/security/libressl-devel/files/patch-include_openssl_opensslv.h
Bernard Spil 9d3d2c0c9a security/libressl-devel: Add next-stable LibreSSL 2.3 port
- Add security/libressl-devel for version 2.3.1
  - Repository copy of security/libressl [1]
  - Including corrections for CVE-2015-3194/3195
  - Add support for multiple versions to bsd.openssl.mk
  - Add option to optionally install API man-pages [2]
  - Disable silent rules output

Changes:

  - ftp://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-2.3.0-relnotes.txt
  - ftp://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-2.3.1-relnotes.txt

PR:		201462 [2]
Submitted by: 	adamw [2]
Requested by:	junovitch [1]
Reviewed by:	vsevolod (mentor, maintainer), koobs (mentor), feld (mentor)
Approved by:	koobs (mentor), feld (mentor), mat [1] (portmgr)
Differential Revision:	https://reviews.freebsd.org/D3585
2016-01-05 09:19:44 +00:00

16 lines
613 B
C

Many applications use checking of OPENSSL_VERSION to detect if
a feature is available and thus fail to build when the version
is set to 0x20000000L. This fixes the OPENSSL_VERSION to the
time at which LibreSSL forked.
--- include/openssl/opensslv.h.orig 2015-09-11 22:35:14 UTC
+++ include/openssl/opensslv.h
@@ -7,7 +7,7 @@
#define LIBRESSL_VERSION_TEXT "LibreSSL 2.3.0"
/* These will never change */
-#define OPENSSL_VERSION_NUMBER 0x20000000L
+#define OPENSSL_VERSION_NUMBER 0x1000107fL
#define OPENSSL_VERSION_TEXT LIBRESSL_VERSION_TEXT
#define OPENSSL_VERSION_PTEXT " part of " OPENSSL_VERSION_TEXT