Page MenuHomeFreeBSD

OpenSSL: make legacy symbols visible
AbandonedPublic

Authored by kp on Sep 15 2023, 1:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 16 2025, 9:23 AM
Unknown Object (File)
Dec 1 2025, 8:49 AM
Unknown Object (File)
Nov 23 2025, 6:55 PM
Unknown Object (File)
Nov 17 2025, 6:28 PM
Unknown Object (File)
Nov 8 2025, 4:46 AM
Unknown Object (File)
Nov 8 2025, 1:49 AM
Unknown Object (File)
Nov 7 2025, 9:50 PM
Unknown Object (File)
Nov 7 2025, 4:48 PM
Subscribers

Details

Reviewers
emaste
khorben
Summary

When we load the legacy.so module we bound the symbols locally, so they
were not accessible to other libraries. This broke expectations for
things like py-cryptography, which expected to be able to use legacy
algorithms.

Other operating systems (e.g. Debian 12) link legacy.so into
libcrypto.so, but OpenSSL 3 supports this separate configuration, and
that's also what the OpenSSL 3 port does.

It was also easier to build legacy.so for FreeBSD this way, when
dealing with the build order: libcrypto.so would need to be built before
legacy.so.

MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 53603
Build 50494: arc lint + arc unit

Event Timeline

kp requested review of this revision.Sep 15 2023, 1:42 PM
  • apply standard spacing around the | operator

Bribe accepted.

Phab doesn't show this, but I've got 'Author: Mark Millard <marklmi26-fbsd@yahoo.com>' in my local tree, and expect to push it that way too.