From nobody Sun Feb 22 04:09:16 2026 X-Original-To: dev-commits-src-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 4fJVqJ37k2z6StbX for ; Sun, 22 Feb 2026 04:09:16 +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 "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fJVqJ27zbz3YDX for ; Sun, 22 Feb 2026 04:09:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1771733356; 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=xLbRll1ly8JDDmX6mhuYzoau7KC+b/p9rW0AH4SZsqE=; b=HB7USwPK2k2ws8hWTmglWeQW2+w9DAvfIXRQ9zXGDv6DyV2RLR5tZW/aweDi8+ojHfj+VO b4Fcyz7B3fiJP9VNR7RhaRgG/bXTou5idhk4aXCDkkY7t5mPNe5ev9rHnVT7ZdwC/WIY8l 9dVhBKn9jB+1HtF0UU/Tw1ULOO2ev5UHRvx2f6iU5COVgQFwvhnHDKK+K/p+uOV6INGe8w Mfj+TTqJc9JFUKGunVoJ6K8onITHfd8jE0C7IksxNhkeyBTpWTHrdNmTcB0aO7pc/vWZ2V lT1VTRfUpaamtN94J7yc+doJshlQij8p8RORRyNKCoSqFrOdo1NOGaPJARkNKw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1771733356; a=rsa-sha256; cv=none; b=nokH6WeBxZNoT9K5Ae986NrpC2HGebroxug4pfdekumHxx6I/Oi4dgGc7oq5Y2soGJO05z AtMJDi2o8HEFdQcpcwmKEBFV0N3TBK5ztg5YSS8VljiaoKcl4g4V6k13+b1yvCLljyNLHc GaY5qEhP2Y18PJpqdYWQzv3Z5ymMSutWxzPQS53WR+HgkfRmkk+CV8TEkX6VXhnxDjmmua rVIwoAYwb2XdFNvEnizPKdy4C7j2312Aqgxdn7eQsUsnIAFeobuPEArPBqq85Yrn9VGD7V cszKmYHJKcaPP5McRCmPymvDpojc8To8LXat3ir7JrR90RE5grxCX5y+b6XvOA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1771733356; 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=xLbRll1ly8JDDmX6mhuYzoau7KC+b/p9rW0AH4SZsqE=; b=spjLnYtKaa97wdDaIbg3b2pTVYrd8YqW0jQWiff9pdZLu4/gdCSBpFNhS4QRagSnfRfMHR YvZb6nFrsZrwATMQx15jo4FDu7mzin7ZHcvKQOhelGsN7tpy4bIF/q6bTy9ReWV7BnGgXC xb/wyRgjuRgmviXcTMnCdyU0yb/joAKMbsJhIeG/4eoH+cHOzy8lf4TnfjDCvIkUajrwKI 8VydhkrK2CUf/6pWIlqNMhFRL5kw8RPbqcOVHt/6xeJiBoakfMjDGHYEVgKYBlCOJZ4bp4 qZZYiAAiaHIbhPWFQhI36/cDUA+z3oJxPl6F4QzaVZB049h6OikLpqTBNBPLaw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fJVqJ16PWzCGr for ; Sun, 22 Feb 2026 04:09:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 22566 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 22 Feb 2026 04:09:16 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Enji Cooper Subject: git: 5c361eb2c085 - stable/14 - openssl: add a simple smoke test for the legacy provider List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ngie X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 5c361eb2c0852b7a5fc59044c08f24db3cb9df52 Auto-Submitted: auto-generated Date: Sun, 22 Feb 2026 04:09:16 +0000 Message-Id: <699a816c.22566.1919001@gitrepo.freebsd.org> The branch stable/14 has been updated by ngie: URL: https://cgit.FreeBSD.org/src/commit/?id=5c361eb2c0852b7a5fc59044c08f24db3cb9df52 commit 5c361eb2c0852b7a5fc59044c08f24db3cb9df52 Author: Enji Cooper AuthorDate: 2025-10-11 20:45:20 +0000 Commit: Enji Cooper CommitDate: 2026-02-22 04:08:44 +0000 openssl: add a simple smoke test for the legacy provider This change adds a simple smoke test for the legacy provider to ensure that the provider doesn't break in the future when performing updates. This is not a functional or system test; the OpenSSL test suite does a much better job at doing this than we can. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D53045 (cherry picked from commit 3b6442370a17c57c4c290b9a8e1e8328da820705) --- etc/mtree/BSD.tests.dist | 2 ++ secure/lib/libcrypto/Makefile | 3 +++ secure/lib/libcrypto/tests/Makefile | 5 ++++ secure/lib/libcrypto/tests/libcrypto_test.sh | 40 ++++++++++++++++++++++++++++ 4 files changed, 50 insertions(+) diff --git a/etc/mtree/BSD.tests.dist b/etc/mtree/BSD.tests.dist index eed5db1c806f..f5d683630c92 100644 --- a/etc/mtree/BSD.tests.dist +++ b/etc/mtree/BSD.tests.dist @@ -490,6 +490,8 @@ .. secure lib + libcrypto + .. .. libexec .. diff --git a/secure/lib/libcrypto/Makefile b/secure/lib/libcrypto/Makefile index dc701d90451e..112080031d90 100644 --- a/secure/lib/libcrypto/Makefile +++ b/secure/lib/libcrypto/Makefile @@ -615,6 +615,9 @@ buildasm cleanasm: ${.TARGET:S/build/all/:S/asm$//} .endfor +HAS_TESTS= yes +SUBDIR.${MK_TESTS}= tests + .include PICFLAG+= -DOPENSSL_PIC diff --git a/secure/lib/libcrypto/tests/Makefile b/secure/lib/libcrypto/tests/Makefile new file mode 100644 index 000000000000..d309a1b1100c --- /dev/null +++ b/secure/lib/libcrypto/tests/Makefile @@ -0,0 +1,5 @@ +PACKAGE= tests + +ATF_TESTS_SH+= libcrypto_test + +.include diff --git a/secure/lib/libcrypto/tests/libcrypto_test.sh b/secure/lib/libcrypto/tests/libcrypto_test.sh new file mode 100755 index 000000000000..83ef1686089d --- /dev/null +++ b/secure/lib/libcrypto/tests/libcrypto_test.sh @@ -0,0 +1,40 @@ +# SPDX-License-Identifier: BSD-2-Clause +# +# Copyright (c) 2025 Enji Cooper + +atf_test_case legacy_provider +legacy_provider_head() { + atf_set "descr" "daemon should drop privileges" +} +legacy_provider_body() { + local passphrase="test" + local plaintext="test" + + export OPENSSL_CONF="$PWD/openssl.conf" + cat > "$OPENSSL_CONF" <