Skip to content

Conversation

johubertj
Copy link
Contributor

@johubertj johubertj commented Jul 17, 2025

Description of changes:

Added support for OpenSSL 3.5.1 in s2n-tls (in nix)

Testing:

Manual testing was performed to verify the environment setup. Specifically:

  • Ran nix develop .#openssl351 to enter the new devShell.

  • Verified the correct OpenSSL binary was used:
    which openssl -> /nix/store/b6l67vj4v1b30ayf5m13hn2nmamjxz7p-openssl-3.5.1/bin/openssl

  • Set LD_LIBRARY_PATH to include the OpenSSL 3.5.1 lib directory and confirmed:
    openssl version -> OpenSSL 3.5.1 30 Jan 2024

  • Ran uvinteg test_pq_handshake to confirm the integration test could run using the new provider.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@github-actions github-actions bot added the s2n-core team label Jul 17, 2025
shellHook = ''
echo Setting up $S2N_LIBCRYPTO environment from flake.nix...
export OPENSSL_PATH=${openssl_3_5_1}
export PATH=$OPENSSL_PATH/bin:$PATH
Copy link
Contributor Author

@johubertj johubertj Jul 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shellHook sets up the environment so the OpenSSL 3.5.1 binary and its required shared libraries are correctly found at runtime. We had to add it because our custom-built OpenSSL 3.5.1 lacks Nix’s wrappers, so LD_LIBRARY_PATH must be set manually to avoid library loading errors.

@johubertj johubertj changed the title Add OpenSSL 3.5.1 support to nix-based development shells feat: Add OpenSSL 3.5.1 support to nix-based development shells Jul 23, 2025
Copy link

This PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant