Page MenuHomeFreeBSD

dumpon: update OpenSSL initialization call
ClosedPublic

Authored by emaste on May 31 2023, 4:32 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 8, 1:26 PM
Unknown Object (File)
Mon, Apr 8, 1:13 PM
Unknown Object (File)
Mon, Apr 8, 10:33 AM
Unknown Object (File)
Jan 30 2024, 2:39 AM
Unknown Object (File)
Jan 29 2024, 9:37 PM
Unknown Object (File)
Jan 4 2024, 12:23 PM
Unknown Object (File)
Dec 28 2023, 6:48 AM
Unknown Object (File)
Dec 24 2023, 1:08 PM
Subscribers

Details

Test Plan
ERR_load_crypto_strings() was deprecated in OpenSSL 1.1.0, and explicit
initialization is generally not reqiured.  In the case of dumpon however
we need to initialize prior to entering capability mode, so replace with
an OPENSSL_init_crypto call.

Sponsored by:   The FreeBSD Foundation

Diff Detail

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

Event Timeline

emaste created this revision.
emaste added reviewers: ngie, khorben_defora.org.

This is a minimal change to avoid calling the deprecated interface; @ngie's D40296 is the full update for dumpon.

emaste added a reviewer: def.
  • Incorporate D40355 (I mixed up the dumpon and decryptcore changes and thought I had already submitted D40353)
This revision is now accepted and ready to land.May 31 2023, 5:06 PM

Some of the comments I found elsewhere suggested this is unnecessary with OpenSSL 1.1+. Is this truly needed?

Is this truly needed?

For applications that enter capability mode I'm opting to err on the side of caution.

This revision was automatically updated to reflect the committed changes.