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

Fix calls to crypto_secretbox_easy #76

Merged
merged 2 commits into from
Feb 4, 2019

Conversation

TellowKrinkle
Copy link
Contributor

Fixes #75
I think we were doing the wrong thing the whole time, not sure why the compiler was okay with it before

I think we were doing the wrong thing the whole time, not sure why the compiler was okay with it before
@TellowKrinkle TellowKrinkle changed the base branch from master to development February 4, 2019 21:30
@TellowKrinkle
Copy link
Contributor Author

TellowKrinkle commented Feb 4, 2019

Actually I realized libsodium must have updated their signature to make secret const and that's what broke ours
Edit: no actually it's been const for the last 5 years, so yeah I'm not sure why it worked in the past
Edit 2: Oh it looks like it was some change in the Swift compiler that made it not want to take a mutating reference to a force-unwrapped variable, which seems like a bug but also we didn't need to have a mutating reference at all so I guess it doesn't matter

They're not required and make it look like things are modifiable even though they're not
@nuclearace nuclearace merged commit 691787a into nuclearace:development Feb 4, 2019
@TellowKrinkle TellowKrinkle deleted the FixSecretboxEasy branch February 4, 2019 21:54
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