From ce66429a7a58f0745e56644fa9f88d68a9edcdee Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Sun, 10 Apr 2022 20:39:54 -0400 Subject: dev-libs/openssl: add 'weak-ssl-ciphers' USE flag Closes: https://bugs.gentoo.org/723056 Signed-off-by: Mike Gilbert --- dev-libs/openssl/metadata.xml | 1 + dev-libs/openssl/openssl-1.1.1n.ebuild | 3 ++- dev-libs/openssl/openssl-3.0.2.ebuild | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dev-libs/openssl/metadata.xml b/dev-libs/openssl/metadata.xml index e0b7df73655d..7aeb3cfc9e34 100644 --- a/dev-libs/openssl/metadata.xml +++ b/dev-libs/openssl/metadata.xml @@ -15,6 +15,7 @@ Support for the old/insecure SSLv3 protocol -- note: not required for TLS/https Enable support for discouraged TLS compression Enable the Heartbeat Extension in TLS and DTLS + Build support for SSL/TLS ciphers that are considered "weak" cpe:/a:openssl:openssl diff --git a/dev-libs/openssl/openssl-1.1.1n.ebuild b/dev-libs/openssl/openssl-1.1.1n.ebuild index af9f45ed046c..5a7d16cfa51b 100644 --- a/dev-libs/openssl/openssl-1.1.1n.ebuild +++ b/dev-libs/openssl/openssl-1.1.1n.ebuild @@ -17,7 +17,7 @@ LICENSE="openssl" SLOT="0/1.1" # .so version of libssl/libcrypto [[ "${PV}" = *_pre* ]] || \ KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt" -IUSE="+asm rfc3779 sctp cpu_flags_x86_sse2 sslv3 static-libs test tls-compression tls-heartbeat vanilla verify-sig" +IUSE="+asm rfc3779 sctp cpu_flags_x86_sse2 sslv3 static-libs test tls-compression tls-heartbeat vanilla verify-sig weak-ssl-ciphers" RESTRICT="!test? ( test )" RDEPEND=">=app-misc/c_rehash-1.7-r1 @@ -193,6 +193,7 @@ multilib_src_configure() { $(use_ssl sctp) \ $(use_ssl tls-compression zlib) \ $(use_ssl tls-heartbeat heartbeats) \ + $(use_ssl weak-ssl-ciphers) \ --prefix="${EPREFIX}"/usr \ --openssldir="${EPREFIX}"${SSL_CNF_DIR} \ --libdir=$(get_libdir) \ diff --git a/dev-libs/openssl/openssl-3.0.2.ebuild b/dev-libs/openssl/openssl-3.0.2.ebuild index a42efd8d9f4e..2ef0aaed3200 100644 --- a/dev-libs/openssl/openssl-3.0.2.ebuild +++ b/dev-libs/openssl/openssl-3.0.2.ebuild @@ -24,7 +24,7 @@ fi LICENSE="Apache-2.0" SLOT="0/3" # .so version of libssl/libcrypto -IUSE="+asm cpu_flags_x86_sse2 fips ktls rfc3779 sctp static-libs test tls-compression vanilla verify-sig" +IUSE="+asm cpu_flags_x86_sse2 fips ktls rfc3779 sctp static-libs test tls-compression vanilla verify-sig weak-ssl-ciphers" RESTRICT="!test? ( test )" COMMON_DEPEND=" @@ -180,6 +180,7 @@ multilib_src_configure() { $(use_ssl rfc3779) $(use_ssl sctp) $(use_ssl tls-compression zlib) + $(use_ssl weak-ssl-ciphers) --prefix="${EPREFIX}"/usr --openssldir="${EPREFIX}"${SSL_CNF_DIR} --libdir=$(get_libdir) -- cgit v1.2.3-65-gdbad