Page MenuHomeFreeBSD

openssl: add a simple smoke test for the legacy provider
ClosedPublic

Authored by ngie on Oct 12 2025, 4:12 AM.
Tags
None
Referenced Files
F163291444: D53045.id.diff
Tue, Jul 21, 7:08 PM
Unknown Object (File)
Mon, Jul 20, 6:42 PM
Unknown Object (File)
Mon, Jul 20, 12:15 PM
Unknown Object (File)
Wed, Jul 15, 6:49 AM
Unknown Object (File)
Wed, Jul 15, 6:49 AM
Unknown Object (File)
Mon, Jul 13, 7:33 AM
Unknown Object (File)
Mon, Jul 13, 3:52 AM
Unknown Object (File)
Sun, Jul 12, 12:33 PM

Details

Summary

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 month

Test Plan
$ kyua test -k /usr/tests/secure/lib/libcrypto/Kyuafile 
libcrypto_test:legacy_provider  ->  passed  [0.022s]

Results file id is usr_tests_secure_lib_libcrypto.20251012-041436-984512
Results saved to /home/ngie/.kyua/store/results.usr_tests_secure_lib_libcrypto.20251012-041436-984512.db

1/1 passed (0 broken, 0 failed, 0 skipped)

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ngie requested review of this revision.Oct 12 2025, 4:12 AM
ngie edited the test plan for this revision. (Show Details)
ngie added a reviewer: khorben.
ngie added subscribers: tests, glebius.

Does OpenSSL just picks up openssl.conf from current directory?

Does OpenSSL just picks up openssl.conf from current directory?

The test uses OPENSSL_CONF to specify the test config file.

From https://docs.openssl.org/3.0/man5/config/#environment :

OPENSSL_CONF

The path to the config file, or the empty string for none. Ignored in set-user-ID and set-group-ID programs.

The test uses OPENSSL_CONF to specify the test config file.

Sorry, I was blind.

The test uses OPENSSL_CONF to specify the test config file.

Sorry, I was blind.

No worries -- it's easy to miss in the "noise".

This revision was not accepted when it landed; it landed in state Needs Review.Oct 17 2025, 6:37 AM
This revision was automatically updated to reflect the committed changes.