Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable building with libsodium only #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dereulenspiegel
Copy link

We tried to use noise-c only with libsodium support but without openssl support. For us this didn't work, most likely because if openssl is not used libsodium might still need report at runtime that AES GCM support is not available (probably due to build flags of libsodium) so noise-c falls back to the reference implementation (and rightly so). But in the build configuration this was nit reflected as the static library archive was missing the object files for the reference AES GCM implementation.
This PR includes these files and seems to work well.

… if libsodium reports that aes gcm is not available at runtime, we need to include the necessary files for the reference implementation
@gram-signal
Copy link
Contributor

I think you may need more than this, since USE_SODIUM isn't set (#16). #54 IIUC fixes everything necessary to run with libsodium.

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

Successfully merging this pull request may close these issues.

2 participants