From nobody Fri Jul 21 23:54:01 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4R75xQ0RRPz4nkmk; Fri, 21 Jul 2023 23:54:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4R75xP75Phz3hfZ; Fri, 21 Jul 2023 23:54:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689983642; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=F1Kn3Ig6Pg7SLP33ot4RBLqGLNR2Jf97IpsxzcRRaAY=; b=mjudeWKCfXXv7PJVZ4ivXx1XDXC1ESBwbYOHDOdCsH0RAkRKOmNxJXT4c4z6mPOS4LptRd tPIyM7G+WtDK/BhkI93r4JI7v0T3OegWSvWc1lupHIepCt9myW08/r6hFMsiU5/QFadjBD DG4KIgSUleuJpo/5R7FiGmIpZRmhcQt/cxdXyroRObl7KWmUZxMPU8VGKLoYPBUcwIN16T UEtuWXpBJbcqdK1gYzn+wfCxrm7WyYwYq0oK94NOngOoLoo1DZFNq92kSPZRGl2uO4vum6 mOjJYKeXPBkiUXQ5bsCih/+hSeaosV+EXPfNNI0o8zptYN1EYEOI64HV0tNQYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689983642; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=F1Kn3Ig6Pg7SLP33ot4RBLqGLNR2Jf97IpsxzcRRaAY=; b=qFFIg/VQF6r82O3vVb2LqiC13ak9BVUOOU21Zz8Ppe4Kef836gMy6l2j5Q6wSFrc+yBb3b RNy4h6HKft6+fvyPewbwpisl/a1Sa3/DjSSkMi2CnS65wjLA+7ueRez7JjYnFynyG2yASQ acRmkjG8Ovtphzhn59Q/ymDrRLc/wcw9QGk+HakTD2951Ufh9mBjdr774oAikybSjAdG11 BOtEjPRC92+xfpxT7gwN6VCCMta8ZnERHYm26i+FrWVJEJeJYaeWerXjMvRgAG1MTcwJpt PxipqMg95znSx+AwNTpWml1U4uf0YbfrWG2reXMAf3cyX1p363ZbvfRQwdzKyA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1689983642; a=rsa-sha256; cv=none; b=ETZejIKD+VN4XBhAxCmd9mfQPg3qVdCe6HiU+lMfKlKqZdkw3E9v9jHKemiX261gjh6XBX Sk4brAQidsWY6sdJKoWn+PpatehCO/IzC7KOaK8vFzgJpOzHU9aNJnrHN6ra6g3LlV/qXY b3r+BI4wIUI9QJl+g5EXlsHZq8QFn6JQqOdpaGvPqlBVnWJnXw48gJVFVXhfyIjLGrQ6WR 3rO79kFlp2YnuD/kUFLNqpqF6lKIZuh+05eKViqlgyD+ItVwKIfPLhelvTyYTVhF2xw/mV Z8NDHMrG0Y2Gik947gDYmIhDqoNjIGnDh0IqqfJtOi2JjxL6mpo1okcBqM7SUQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4R75xP6BByzXwb; Fri, 21 Jul 2023 23:54:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 36LNs1r1036801; Fri, 21 Jul 2023 23:54:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 36LNs1hl036800; Fri, 21 Jul 2023 23:54:01 GMT (envelope-from git) Date: Fri, 21 Jul 2023 23:54:01 GMT Message-Id: <202307212354.36LNs1hl036800@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Kevin Bowling Subject: git: 29ba81195ab3 - main - sysutils/barrier: Fix build with OpenSSL 3 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kbowling X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 29ba81195ab384a6b4de7c953cb6ac8ca2fff557 Auto-Submitted: auto-generated The branch main has been updated by kbowling: URL: https://cgit.FreeBSD.org/ports/commit/?id=29ba81195ab384a6b4de7c953cb6ac8ca2fff557 commit 29ba81195ab384a6b4de7c953cb6ac8ca2fff557 Author: Kevin Bowling AuthorDate: 2023-07-21 23:52:25 +0000 Commit: Kevin Bowling CommitDate: 2023-07-21 23:53:57 +0000 sysutils/barrier: Fix build with OpenSSL 3 OpenSSL 3 in FreeBSD base no longer links with: undefined symbol: RSA_generate_key --- .../barrier/files/patch-src_lib_net_SecureUtils.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/sysutils/barrier/files/patch-src_lib_net_SecureUtils.cpp b/sysutils/barrier/files/patch-src_lib_net_SecureUtils.cpp new file mode 100644 index 000000000000..4fb4e8c4bea0 --- /dev/null +++ b/sysutils/barrier/files/patch-src_lib_net_SecureUtils.cpp @@ -0,0 +1,21 @@ +--- src/lib/net/SecureUtils.cpp.orig 2023-07-21 23:37:03 UTC ++++ src/lib/net/SecureUtils.cpp +@@ -160,17 +160,11 @@ void generate_pem_self_signed_cert(const std::string& + { + auto expiration_days = 365; + +- auto* private_key = EVP_PKEY_new(); ++ auto* private_key = EVP_RSA_gen(2048); + if (!private_key) { + throw std::runtime_error("Could not allocate private key for certificate"); + } + auto private_key_free = finally([private_key](){ EVP_PKEY_free(private_key); }); +- +- auto* rsa = RSA_generate_key(2048, RSA_F4, nullptr, nullptr); +- if (!rsa) { +- throw std::runtime_error("Failed to generate RSA key"); +- } +- EVP_PKEY_assign_RSA(private_key, rsa); + + auto* cert = X509_new(); + if (!cert) {