c1257222b3
We have released LibreSSL 2.5.4, which will be arriving in the LibreSSL directory of your local OpenBSD mirror soon. It includes the following changes: * Reverted a previous change that forced consistency between return value and error code when specifing a certificate verification callback, since this breaks the documented API. When a user supplied callback always returns 1, and later code checks the error code to potentially abort post verification, this will result in incorrect successul certificate verification. * Switched Linux getrandom() usage to non-blocking mode, continuing to use fallback mechanims if unsuccessful. This works around a design flaw in Linux getrandom(2) where early boot usage in a library makes it impossible to recover if getrandom(2) is not yet initialized. * Fixed a bug caused by the return value being set early to signal successful DTLS cookie validation. This can mask a later failure and result in a positive return value being returned from ssl3_get_client_hello(), when it should return a negative value to propagate the error. * Fixed a build error on non-x86/x86_64 systems running Solaris. We have released LibreSSL 2.5.3, based on OpenBSD 6.1, which will be the new stable release series. LibreSSL 2.3.x support has also ended. LibreSSL 2.5.3 contains the following changes from the previous stable release. * libtls now supports ALPN and SNI * libtls adds a new callback interface for integrating custom IO functions. Thanks to Tobias Pape. * libtls now handles 4 cipher suite groups: "secure" (TLSv1.2+AEAD+PFS) "compat" (HIGH:!aNULL) "legacy" (HIGH:MEDIUM:!aNULL) "insecure" (ALL:!aNULL:!eNULL) This allows for flexibility and finer grained control, rather than having two extremes (an issue raised by Marko Kreen some time ago). * Tightened error handling for tls_config_set_ciphers(). * libtls now always loads CA, key and certificate files at the time the configuration function is called. This simplifies code and results in a single memory based code path being used to provide data to libssl. * Added support for OCSP intermediate certificates. * Added functions used by stunnel and exim from BoringSSL - this brings in X509_check_host, X509_check_email, X509_check_ip, and X509_check_ip_asc. * Added initial support for iOS, thanks to Jacob Berkman. * Improved behavior of arc4random on Windows when using memory leak analysis software. * Correctly handle an EOF that occurs prior to the TLS handshake completing. Reported by Vasily Kolobkov, based on a diff from Marko Kreen. * Limit the support of the "backward compatible" ssl2 handshake to only be used if TLS 1.0 is enabled. * Fix incorrect results in certain cases on 64-bit systems when BN_mod_word() can return incorrect results. BN_mod_word() now can return an error condition. Thanks to Brian Smith. * Added constant-time updates to address CVE-2016-0702 * Fixed undefined behavior in BN_GF2m_mod_arr() * Removed unused Cryptographic Message Support (CMS) * More conversions of long long idioms to time_t * Improved compatibility by avoiding printing NULL strings with printf. * Reverted change that cleans up the EVP cipher context in EVP_EncryptFinal() and EVP_DecryptFinal(). Some software relies on the previous behaviour. * Avoid unbounded memory growth in libssl, which can be triggered by a TLS client repeatedly renegotiating and sending OCSP Status Request TLS extensions. * Avoid falling back to a weak digest for (EC)DH when using SNI with libssl. * X509_cmp_time() now passes a malformed GeneralizedTime field as an error. Reported by Theofilos Petsios. * Detect zero-length encrypted session data early, instead of when malloc(0) fails or the HMAC check fails. Noted independently by jsing@ and Kurt Cancemi. * Check for and handle failure of HMAC_{Update,Final} or EVP_DecryptUpdate(). * Massive update and normalization of manpages, conversion to mandoc format. Many pages were rewritten for clarity and accuracy. Portable doc links are up-to-date with a new conversion tool. * Curve25519 Key Exchange support. * Support for alternate chains for certificate verification. * Code cleanups, CBB conversions, further unification of DTLS/SSL handshake code, further ASN1 macro expansion and removal. * Private symbols are now hidden in libssl and libcrypto. * Friendly certificate verification error messages in libtls, peer verification is now always enabled. * Added OCSP stapling support to libtls and nc. * Added ocspcheck utility to validate a certificate against its OCSP responder and save the reply for stapling * Enhanced regression tests and error handling for libtls. * Added explicit constant and non-constant time BN functions, defaulting to constant time wherever possible. * Moved many leaked implementation details in public structs behind opaque pointers. * Added ticket support to libtls. * Added support for setting the supported EC curves via SSL{_CTX}_set1_groups{_list}() - also provide defines for the previous SSL{_CTX}_set1_curves{_list} names. This also changes the default list of curves to be X25519, P-256 and P-384. All other curves must be manually enabled. * Added -groups option to openssl(1) s_client for specifying the curves to be used in a colon-separated list. * Merged client/server version negotiation code paths into one, reducing much duplicate code. * Removed error function codes from libssl and libcrypto. * Fixed an issue where a truncated packet could crash via an OOB read. * Added SSL_OP_NO_CLIENT_RENEGOTIATION option that disallows client-initiated renegotiation. This is the default for libtls servers. * Avoid a side-channel cache-timing attack that can leak the ECDSA private keys when signing. This is due to BN_mod_inverse() being used without the constant time flag being set. Reported by Cesar Pereida Garcia and Billy Brumley (Tampere University of Technology). The fix was developed by Cesar Pereida Garcia. * iOS and MacOS compatibility updates from Simone Basso and Jacob Berkman. * Added the recallocarray(3) memory allocation function, and converted various places in the library to use it, such as CBB and BUF_MEM_grow. recallocarray(3) is similar to reallocarray. Newly allocated memory is cleared similar to calloc(3). Memory that becomes unallocated while shrinking or moving existing allocations is explicitly discarded by unmapping or clearing to 0. * Added new root CAs from SECOM Trust Systems / Security Communication of Japan. * Added EVP interface for MD5+SHA1 hashes. * Fixed DTLS client failures when the server sends a certificate request. * Correct handling of padding when upgrading an SSLv2 challenge into an SSLv3/TLS connection. * Allow protocols and ciphers to be set on a TLS config object in libtls. * Improved nc(1) TLS handshake CPU usage and server-side error reporting. * Add a constant time version of BN_gcd and use it default for BN_gcd to avoid the possibility of sidechannel timing attacks against RSA private key generation - Thanks to Alejandro Cabrera We have released LibreSSL 2.5.2, which will be arriving in the LibreSSL directory of your local OpenBSD mirror soon. It includes the following changes: * Added the recallocarray(3) memory allocation function, and converted various places in the library to use it, such as CBB and BUF_MEM_grow. recallocarray(3) is similar to reallocarray. Newly allocated memory is cleared similar to calloc(3). Memory that becomes unallocated while shrinking or moving existing allocations is explicitly discarded by unmapping or clearing to 0. * Added new root CAs from SECOM Trust Systems / Security Communication of Japan. * Added EVP interface for MD5+SHA1 hashes. * Fixed DTLS client failures when the server sends a certificate request. * Correct handling of padding when upgrading an SSLv2 challenge into an SSLv3/TLS connection. * Allow protocols and ciphers to be set on a TLS config object in libtls. * Improved nc(1) TLS handshake CPU usage and server-side error reporting. The LibreSSL project continues improvement of the codebase to reflect modern, safe programming practices. We welcome feedback and improvements from the broader community. Thanks to all of the contributors who helped make this release possible.
54 lines
1.4 KiB
Makefile
54 lines
1.4 KiB
Makefile
# $NetBSD: Makefile,v 1.11 2017/05/03 11:19:04 maya Exp $
|
|
|
|
DISTNAME= libressl-2.5.4
|
|
CATEGORIES= security
|
|
MASTER_SITES= ${MASTER_SITE_OPENBSD:=LibreSSL/}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.libressl.org/
|
|
COMMENT= Secure Sockets Layer and cryptography libraries and tools
|
|
LICENSE= openssl
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_LIBTOOL= yes
|
|
USE_TOOLS+= pkg-config
|
|
|
|
PKGCONFIG_OVERRIDE+= libcrypto.pc.in
|
|
PKGCONFIG_OVERRIDE+= libssl.pc.in
|
|
PKGCONFIG_OVERRIDE+= libtls.pc.in
|
|
PKGCONFIG_OVERRIDE+= openssl.pc.in
|
|
|
|
LIBRESSL_PREFIX= ${PREFIX}/${PKGBASE}
|
|
|
|
PKG_SYSCONFSUBDIR= ${PKGBASE}
|
|
GNU_CONFIGURE_PREFIX= ${LIBRESSL_PREFIX}
|
|
CONFIGURE_ARGS+= --with-openssldir=${PKG_SYSCONFDIR}
|
|
|
|
INSTALLATION_DIRS+= ${EGDIR} lib
|
|
|
|
EGDIR= ${PREFIX}/libressl/share/examples/${PKGBASE}
|
|
CONFS= cert.pem openssl.cnf x509v3.cnf
|
|
.for f in ${CONFS}
|
|
CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f}
|
|
.endfor
|
|
|
|
# Handle subprefix
|
|
LDFLAGS+= ${COMPILER_RPATH_FLAG}${LIBRESSL_PREFIX:Q}/lib
|
|
BUILDLINK_PASSTHRU_RPATHDIRS+= ${LIBRESSL_PREFIX:Q}/lib
|
|
|
|
TEST_TARGET= check
|
|
PLIST_VARS+= man
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} != "Darwin"
|
|
# bn_print(3) and BN_print(3) conflict on case-insensitive file system
|
|
PLIST.man= yes
|
|
.endif
|
|
|
|
post-install:
|
|
cd ${WRKSRC}/apps/openssl; ${INSTALL_DATA} ${CONFS} ${DESTDIR}${EGDIR}
|
|
mv ${DESTDIR}${PREFIX}/libressl/lib/pkgconfig ${DESTDIR}${PREFIX}/lib
|
|
${RM} -r ${DESTDIR}${PREFIX}/etc/libressl
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|