-
Notifications
You must be signed in to change notification settings - Fork 122
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
Bring in testing changes from upstream commit 5ee4e95 #2048
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2048 +/- ##
=======================================
Coverage 78.77% 78.77%
=======================================
Files 598 598
Lines 103667 103716 +49
Branches 14738 14742 +4
=======================================
+ Hits 81659 81699 +40
- Misses 21355 21365 +10
+ Partials 653 652 -1 ☔ View full report in Codecov by Sentry. |
aefce17
to
780fd7b
Compare
780fd7b
to
d003000
Compare
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.
I'm leaning towards being compatible with OpenSSL as it's also not a change in our current behaviour, so it's less risky.
Co-authored-by: Nevine Ebeid <[email protected]>
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.
Initial impression everything looks good in the test. I'm waiting to hear back from any Windows customers before picking a side for default behavior.
Issues:
Resolves i/CryptoAlg-2805
Description of changes:
Upstream commit
5ee4e95
's source changes are almost identical to ouraddition of
BIO_FP_TEXT
in PR 1153. The only difference in behavior isthat we will call
_setmode
w/_O_BINARY
on windows when no flags arespecified, where BoringSSL will simply no-op and leave the underlying file's
mode alone.
Upstream's commit has some nice tests, though, so we crib those and change a
single line of expectation to account for our difference in behavior.
Open Question to Reviewers
In the interests of maximizing compatibility, I initially retained
our/OpenSSL's behavior of setting
_O_BINARY
mode on the file whenBIO_FP_TEXT
is not set. It's possible that downstream consumers have workedaround this behavior and have come to expect it. BoringSSL's behavior better
honors the (likely) intent of the caller.
Should we conform to BoringSSL's behavior and (marginally) risk downstream
compatibility issues or stick with our/OpenSSL's current behavior?
Testing:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.