From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A8BCE158094 for ; Sun, 10 Jul 2022 22:52:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 90A93E0D65; Sun, 10 Jul 2022 22:52:10 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 76AB5E0D65 for ; Sun, 10 Jul 2022 22:52:10 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8979C34109F for ; Sun, 10 Jul 2022 22:52:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 07AEE540 for ; Sun, 10 Jul 2022 22:52:07 +0000 (UTC) From: "Quentin Retornaz" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Quentin Retornaz" Message-ID: <1657493449.2bd21e7bccc480c25c47046a619368208d4be36d.quentin@gentoo> Subject: [gentoo-commits] repo/proj/libressl:master commit in: mail-filter/imapfilter/, mail-filter/imapfilter/files/ X-VCS-Repository: repo/proj/libressl X-VCS-Files: mail-filter/imapfilter/files/imapfilter-2.7.5-libressl.patch mail-filter/imapfilter/imapfilter-2.7.5.ebuild mail-filter/imapfilter/metadata.xml X-VCS-Directories: mail-filter/imapfilter/files/ mail-filter/imapfilter/ X-VCS-Committer: quentin X-VCS-Committer-Name: Quentin Retornaz X-VCS-Revision: 2bd21e7bccc480c25c47046a619368208d4be36d X-VCS-Branch: master Date: Sun, 10 Jul 2022 22:52:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0563d49c-ae5b-4848-84a1-97978c684993 X-Archives-Hash: cff770b4bf0a37ec2abec9bff6adccfd commit: 2bd21e7bccc480c25c47046a619368208d4be36d Author: orbea riseup net> AuthorDate: Thu Jul 7 22:21:24 2022 +0000 Commit: Quentin Retornaz retornaz com> CommitDate: Sun Jul 10 22:50:49 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=2bd21e7b mail-filter/imapfilter: Update libressl patch Also merges changes from ::gentoo. Signed-off-by: orbea riseup.net> Signed-off-by: Quentin Retornaz retornaz.com> .../files/imapfilter-2.7.5-libressl.patch | 45 +++++++++++----------- mail-filter/imapfilter/imapfilter-2.7.5.ebuild | 2 +- mail-filter/imapfilter/metadata.xml | 2 +- 3 files changed, 24 insertions(+), 25 deletions(-) diff --git a/mail-filter/imapfilter/files/imapfilter-2.7.5-libressl.patch b/mail-filter/imapfilter/files/imapfilter-2.7.5-libressl.patch index fb665f8..e5b1882 100644 --- a/mail-filter/imapfilter/files/imapfilter-2.7.5-libressl.patch +++ b/mail-filter/imapfilter/files/imapfilter-2.7.5-libressl.patch @@ -1,26 +1,25 @@ -From 9a1132d8c8616b67156d49bea89d567ed31d42d6 Mon Sep 17 00:00:00 2001 -From: Stefan Strogin -Date: Wed, 30 Dec 2020 06:48:40 +0300 -Subject: [PATCH] Fix build with LibreSSL +From OpenBSD. -Signed-off-by: Stefan Strogin ---- - src/socket.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) +Fix build with opaque HMAC_CTX in LibreSSL 3.5. -diff --git a/src/socket.c b/src/socket.c -index aa2ef4f..fa75de4 100644 ---- a/src/socket.c -+++ b/src/socket.c -@@ -143,7 +143,7 @@ open_secure_connection(session *ssn) - goto fail; +Index: src/auth.c +--- a/src/auth.c.orig ++++ b/src/auth.c +@@ -20,7 +20,7 @@ auth_cram_md5(const char *user, const char *pass, unsi + unsigned char *resp, *buf, *out; + unsigned char md[EVP_MAX_MD_SIZE], mdhex[EVP_MAX_MD_SIZE * 2 + 1]; + unsigned int mdlen; +-#if OPENSSL_VERSION_NUMBER >= 0x1010000fL && !defined(LIBRESSL_VERSION_NUMBER) ++#if OPENSSL_VERSION_NUMBER >= 0x1010000fL + HMAC_CTX *ctx; + #else + HMAC_CTX ctx; +@@ -32,7 +32,7 @@ auth_cram_md5(const char *user, const char *pass, unsi - if (get_option_boolean("hostnames")) { --#if OPENSSL_VERSION_NUMBER >= 0x10100000L -+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) - SSL_set_hostflags(ssn->sslconn, - X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS); - if (!SSL_set1_host(ssn->sslconn, ssn->server)) { --- -2.30.0 - + EVP_DecodeBlock(resp, chal, strlen((char *)(chal))); + +-#if OPENSSL_VERSION_NUMBER >= 0x1010000fL && !defined(LIBRESSL_VERSION_NUMBER) ++#if OPENSSL_VERSION_NUMBER >= 0x1010000fL + ctx = HMAC_CTX_new(); + HMAC_Init_ex(ctx, (const unsigned char *)pass, strlen(pass), + EVP_md5(), NULL); diff --git a/mail-filter/imapfilter/imapfilter-2.7.5.ebuild b/mail-filter/imapfilter/imapfilter-2.7.5.ebuild index 89738e8..911e6fe 100644 --- a/mail-filter/imapfilter/imapfilter-2.7.5.ebuild +++ b/mail-filter/imapfilter/imapfilter-2.7.5.ebuild @@ -13,7 +13,7 @@ SRC_URI="https://github.com/lefcha/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="MIT" SLOT="0" -KEYWORDS="~amd64 ~ppc ~x86" +KEYWORDS="amd64 ppc x86" REQUIRED_USE="${LUA_REQUIRED_USE}" diff --git a/mail-filter/imapfilter/metadata.xml b/mail-filter/imapfilter/metadata.xml index 905d603..e32dccc 100644 --- a/mail-filter/imapfilter/metadata.xml +++ b/mail-filter/imapfilter/metadata.xml @@ -1,5 +1,5 @@ - +