From nobody Wed Nov 05 19:37:42 2025 X-Original-To: dev-commits-src-branches@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 4d1wZt6p9Hz652Sx; Wed, 05 Nov 2025 19:37:42 +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" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4d1wZt4Fqgz3t10; Wed, 05 Nov 2025 19:37:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1762371462; 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=pYKot1G99Eg4EWCK0jsa9ChrgSohVGr+5y/pW5XC8Vs=; b=QSJpBHI0b8gUx9XTXCd7bJwhHwbFwlmM2B6+6E9i8VBNQAIsbkqdcL3/hHFbpRqgu8mLHD /kb6f7aMI4Yjs6qUg1TEE8ypb49UCplrNI0VjppjpzpZyP++Vyd3RO/OMnz7esuBSgKffQ rx87xZb1vSfDSVOSTjsjf572ywJWxEtbj18tA8I78V79gJs5sgzQZ+NOJqp8FZO6LzZQw3 L3Jzk4Xqmqp2vyi+SDDy4lrfzqStV13qRL6ep2u9iDgoS++OCdGC88haERq8TqD/Jw7jbT dSNiYy9WW+xhtSItxZaHRLc5glqRuC/73Hf1rCSLtEHVI+dbd+gH3/46aGeBtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1762371462; 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=pYKot1G99Eg4EWCK0jsa9ChrgSohVGr+5y/pW5XC8Vs=; b=Ow5SEUbf3APUg+CtFWvN47txR0E61p97zYsdBnxSuoebqXi6JMnn1ZCzTGvyPbFZ0MgbAF qQSTIlJ7mY50mFwwkDcN74IQSj4UrhjYmecKwLDn6vPsUpLFtkXQboKBv/JRkKQW+H7KZ2 qIrJoDLMIayDndt2jGDNaIJCejdMduZvRvUjz/ExIm6Xf8mzscJc/KMpYT12COIg+eUdj4 FSaSPphtpIe+dHe2mJE7CuLflAwK3kzRNistCtPxKFmKZzEBUyTSoQoqO37QhdvGt3O5kh Z491RLkHS41Ijs8GAiE/c5KVy3DbwjFJhRGSk9RlgP4+zgBib35ANcyROlw8PQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1762371462; a=rsa-sha256; cv=none; b=X7QE9z24P0CNa86BB3ZRISI9VD6Z9Go6VjLNA2M2ea7U6Nyy6aR1a0b7CnSUlaavcUAU7i 8tb5kyWjB6+5PwKsPtLcTU7aVp0mfsYPKjv4ciHJZxz/YVWKnM5Ahl3pxW+f+qwmN59pwW WUfI1wytzzgnxpYxLh3HPKrCn+JekFF89n1iy/mMUm6Cz/+u5fvrnRx52WvIrOlOWZTnod fN2HGFNotw8qcBSgz9+H97rABT2VCNedu3JmCiSZusDJlHISwDe5GPL+2hEOvKlrQT5Et4 M61JMkdpGm+E4iQCyDASVUsMqeAEkrwKcAb8PiV0cZMze498cR2PJKdLsbxvxQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4d1wZt3qV8zxSP; Wed, 05 Nov 2025 19:37:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 5A5JbgMi086641; Wed, 5 Nov 2025 19:37:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 5A5JbgQJ086638; Wed, 5 Nov 2025 19:37:42 GMT (envelope-from git) Date: Wed, 5 Nov 2025 19:37:42 GMT Message-Id: <202511051937.5A5JbgQJ086638@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Colin Percival Subject: git: a7c692e02293 - releng/15.0 - openssl: add a simple smoke test for the legacy provider List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cperciva X-Git-Repository: src X-Git-Refname: refs/heads/releng/15.0 X-Git-Reftype: branch X-Git-Commit: a7c692e02293ca2380f94016465d0043aac80156 Auto-Submitted: auto-generated The branch releng/15.0 has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=a7c692e02293ca2380f94016465d0043aac80156 commit a7c692e02293ca2380f94016465d0043aac80156 Author: Enji Cooper AuthorDate: 2025-10-11 20:45:20 +0000 Commit: Colin Percival CommitDate: 2025-11-05 19:37:03 +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. Approved by: re (cperciva) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D53045 (cherry picked from commit 3b6442370a17c57c4c290b9a8e1e8328da820705) (cherry picked from commit 9b3c89ce8b2b6455d50e364708988c832672a042) --- 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 9ab2f3e972d6..520b41c8b88f 100644 --- a/etc/mtree/BSD.tests.dist +++ b/etc/mtree/BSD.tests.dist @@ -520,6 +520,8 @@ .. secure lib + libcrypto + .. .. libexec .. diff --git a/secure/lib/libcrypto/Makefile b/secure/lib/libcrypto/Makefile index 75ebb6e65327..6f9dd62d8610 100644 --- a/secure/lib/libcrypto/Makefile +++ b/secure/lib/libcrypto/Makefile @@ -673,6 +673,9 @@ buildasm cleanasm: ${.TARGET:S/build/all/:S/asm$//} .endfor +HAS_TESTS= yes +SUBDIR.${MK_TESTS}= tests + .include .if ${MACHINE} == "powerpc" 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" <