-
Notifications
You must be signed in to change notification settings - Fork 121
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
add back ASN1_dup with tests #1591
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1591 +/- ##
==========================================
+ Coverage 78.03% 78.06% +0.02%
==========================================
Files 562 562
Lines 94558 94600 +42
Branches 13576 13575 -1
==========================================
+ Hits 73790 73848 +58
+ Misses 20175 20160 -15
+ Partials 593 592 -1 ☔ View full report in Codecov by Sentry. |
This reverts commit 0cd2716.
Apparently the CFI is still failing with the macros:
I reverted to run 4a5be1e against the CFI sanitizers, but apparently it doesn't actually pass the CFI tests either. I'll need to revert 4a5be1e and 0cd2716 to remove the macros and get the CFI build passing. I think the main issue is that |
This reverts commit 4a5be1e.
Issues:
Addresses
CryptoAlg-1717
Description of changes:
ASN1_dup
was removed in 419144a in favor ofASN1_Item_dup
. This shouldn't normally be called directly, but Ruby happens to consume the API in several instances.I've optimized the function to allocate memory with
i2d
directly, instead of the ancient OpenSSL allocate and pass into behavior.Also added some tests for verification along with a do-not-use warning.
Call-outs:
N/A
Testing:
New tests
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.