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
Unknown Object (File)
Fri, Oct 31, 1:21 AM
Unknown Object (File)
Sat, Oct 25, 4:23 PM
Unknown Object (File)
Fri, Oct 24, 6:16 PM
Unknown Object (File)
Wed, Oct 22, 10:11 AM
Unknown Object (File)
Oct 18 2025, 4:17 AM
Unknown Object (File)
Oct 18 2025, 4:17 AM
Unknown Object (File)
Oct 18 2025, 4:17 AM
Unknown Object (File)
Oct 17 2025, 5:52 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.