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 77209158094 for ; Sun, 10 Jul 2022 22:51:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BA13DE0D4B; Sun, 10 Jul 2022 22:51:40 +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 7DDB3E0D4B for ; Sun, 10 Jul 2022 22:51:40 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9DF96341097 for ; Sun, 10 Jul 2022 22:51:38 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E91B152C for ; Sun, 10 Jul 2022 22:51:36 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1657493370.96f41975119135ab535159e3807a454658547c00.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-voip/telepathy-gabble/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-voip/telepathy-gabble/files/telepathy-gabble-0.18.4-openssl-1.1.patch X-VCS-Directories: net-voip/telepathy-gabble/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 96f41975119135ab535159e3807a454658547c00 X-VCS-Branch: master Date: Sun, 10 Jul 2022 22:51:36 +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: 47a998ce-956a-4af4-a57b-89313a06f8b4 X-Archives-Hash: 7a8ee98106015da81d59aac121a239a1 commit: 96f41975119135ab535159e3807a454658547c00 Author: orbea riseup net> AuthorDate: Thu Jul 7 01:45:52 2022 +0000 Commit: Sam James gentoo org> CommitDate: Sun Jul 10 22:49:30 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96f41975 net-voip/telepathy-gabble: Remove LibreSSL support This also fixes the build with libressl-3.5.x from the libressl overlay. Signed-off-by: orbea riseup.net> Closes: https://github.com/gentoo/gentoo/pull/26253 Signed-off-by: Sam James gentoo.org> .../telepathy-gabble-0.18.4-openssl-1.1.patch | 30 +++++++++++----------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/net-voip/telepathy-gabble/files/telepathy-gabble-0.18.4-openssl-1.1.patch b/net-voip/telepathy-gabble/files/telepathy-gabble-0.18.4-openssl-1.1.patch index 0e0d647b700c..c4707e849384 100644 --- a/net-voip/telepathy-gabble/files/telepathy-gabble-0.18.4-openssl-1.1.patch +++ b/net-voip/telepathy-gabble/files/telepathy-gabble-0.18.4-openssl-1.1.patch @@ -19,12 +19,12 @@ index b77fb4c..bb50523 100644 0x02, }; DH *dh; -+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) ++#if OPENSSL_VERSION_NUMBER >= 0x10100000L + int r = 0; +#endif if ((dh=DH_new()) == NULL) return(NULL); -+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) ++#if OPENSSL_VERSION_NUMBER >= 0x10100000L + r = DH_set0_pqg(dh, BN_bin2bn(dh1024_p,sizeof(dh1024_p),NULL), + NULL, BN_bin2bn(dh1024_g,sizeof(dh1024_g),NULL)); + if (!r) @@ -45,12 +45,12 @@ index c16deb7..d53ceda 100644 0x02, }; DH *dh; -+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) ++#if OPENSSL_VERSION_NUMBER >= 0x10100000L + int r = 0; +#endif if ((dh=DH_new()) == NULL) return(NULL); -+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) ++#if OPENSSL_VERSION_NUMBER >= 0x10100000L + r = DH_set0_pqg(dh, BN_bin2bn(dh2048_p,sizeof(dh2048_p),NULL), + NULL, BN_bin2bn(dh2048_g,sizeof(dh2048_g),NULL)); + if (!r) @@ -71,12 +71,12 @@ index 2854385..93fa7e5 100644 0x02, }; DH *dh; -+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) ++#if OPENSSL_VERSION_NUMBER >= 0x10100000L + int r = 0; +#endif if ((dh=DH_new()) == NULL) return(NULL); -+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) ++#if OPENSSL_VERSION_NUMBER >= 0x10100000L + r = DH_set0_pqg(dh, BN_bin2bn(dh4096_p,sizeof(dh4096_p),NULL), + NULL, BN_bin2bn(dh4096_g,sizeof(dh4096_g),NULL)); + if (!r) @@ -97,12 +97,12 @@ index 8e7a278..c2891cd 100644 0x02, }; DH *dh; -+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) ++#if OPENSSL_VERSION_NUMBER >= 0x10100000L + int r = 0; +#endif if ((dh=DH_new()) == NULL) return(NULL); -+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) ++#if OPENSSL_VERSION_NUMBER >= 0x10100000L + r = DH_set0_pqg(dh, BN_bin2bn(dh512_p,sizeof(dh512_p),NULL), + NULL, BN_bin2bn(dh512_g,sizeof(dh512_g),NULL)); + if (!r) @@ -124,7 +124,7 @@ index 2201213..18f9981 100644 gboolean rval = FALSE; X509_NAME *subject = X509_get_subject_name (cert); - X509_CINF *ci = cert->cert_info; -+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) ++#if OPENSSL_VERSION_NUMBER >= 0x10100000L + const STACK_OF(X509_EXTENSION)* extensions = X509_get0_extensions(cert); +#else + const STACK_OF(X509_EXTENSION)* extensions = cert->cert_info->extensions; @@ -148,7 +148,7 @@ index 2201213..18f9981 100644 long ni = OBJ_obj2nid (obj); const guchar *p; char *value = NULL; -+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) ++#if OPENSSL_VERSION_NUMBER >= 0x10100000L + const ASN1_OCTET_STRING* ext_value = X509_EXTENSION_get_data(ext); + int len = ASN1_STRING_length(ext_value); +#else @@ -161,7 +161,7 @@ index 2201213..18f9981 100644 if ((convert = (X509V3_EXT_METHOD *) X509V3_EXT_get (ext)) == NULL) continue; -+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) ++#if OPENSSL_VERSION_NUMBER >= 0x10100000L + p = ASN1_STRING_get0_data(ext_value); +#else p = ext->value->data; @@ -173,7 +173,7 @@ index 2201213..18f9981 100644 X509_STORE *store = SSL_CTX_get_cert_store(session->ctx); X509 *cert = SSL_get_peer_certificate (session->ssl); STACK_OF(X509) *chain = SSL_get_peer_cert_chain (session->ssl); -+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) ++#if OPENSSL_VERSION_NUMBER >= 0x10100000L + X509_VERIFY_PARAM* param = X509_STORE_get0_param(store); + long old_flags = X509_VERIFY_PARAM_get_flags(param); +#else @@ -184,7 +184,7 @@ index 2201213..18f9981 100644 new_flags &= ~(X509_V_FLAG_CRL_CHECK|X509_V_FLAG_CRL_CHECK_ALL); -+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) ++#if OPENSSL_VERSION_NUMBER >= 0x10100000L + X509_VERIFY_PARAM_set_flags(param, new_flags); +#else store->param->flags = new_flags; @@ -196,7 +196,7 @@ index 2201213..18f9981 100644 status = _cert_status (session, new_code, level, ssl_code); } -+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) ++#if OPENSSL_VERSION_NUMBER >= 0x10100000L + X509_VERIFY_PARAM_set_flags(param, old_flags); +#else store->param->flags = old_flags; @@ -208,7 +208,7 @@ index 2201213..18f9981 100644 if G_UNLIKELY (g_once_init_enter (&initialised)) { -+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) ++#if OPENSSL_VERSION_NUMBER >= 0x10100000L + DEBUG ("initialising SSL library and error strings"); +#else gint malloc_init_succeeded;