-
Notifications
You must be signed in to change notification settings - Fork 162
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
crypto: Fix compilation with no ChaCha20 #27
Conversation
Can you create a FIZZ_HAS_CHACHA define or similar and based the other checks (like fizz/fizz/client/FizzClientContext.h Line 226 in bc80449
|
This looks like it would be better suited for inclusion in folly's portability header. On the other hand, a git grep of the code base also shows three of these:
|
Summary: This can be used to check if ChaCha20 is available for use. Signed-off-by: Rosen Penev <rosenp@gmail.com> related: facebookincubator/fizz#27 Pull Request resolved: #1146 Reviewed By: knekritz Differential Revision: D15583706 Pulled By: yfeldblum fbshipit-source-id: 1195d623098018992811cd7d6cef72e2366ace19
ChaCha20 can be compile time disabled. Check for it. Using folly's define for this.
I pushed a new version. I checked every place in the fizz source that checks for ChaCha20 compatibility and replaced it with the new define. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@knekritz has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Summary: Pull Request resolved: facebook/sapling#27 Pull Request resolved: facebookexperimental/rust-shed#9 Original diffs: D22417488 (1adf0d7), D22528869 (9176fae) Reviewed By: markbt Differential Revision: D22571972 fbshipit-source-id: c6f013565680a757b642dd79e647207fce3351ec
ChaCha20 can be compile time disabled. Check for it.