Fix d2i_ECPKParameters_fp and i2d_ECPKParameters_fp macroes#16355
Fix d2i_ECPKParameters_fp and i2d_ECPKParameters_fp macroes#16355romen wants to merge 8 commits intoopenssl:masterfrom
Conversation
These functions are part of the public API but we don't have tests covering their usage. They are actually implemented as macroes and the absence of tests has caused them to fall out-of-sync with the latest changes to ASN1 related functions and cause compilation warnings. @@ Note: This commit limits to ECPKParameters as a type. (cherry picked from commit 52a0e66)
These functions are part of the public API but we don't have tests covering their usage. They are actually implemented as macroes and the absence of tests has caused them to fall out-of-sync with the latest changes to ASN1 related functions and cause compilation warnings. This commit fixes the public headers to reflect these changes. Fixes openssl#12443 (cherry picked from commit 7e1636d)
Some curves don't have an associated OID: for those we should not default to `OPENSSL_EC_NAMED_CURVE` encoding of parameters and instead set the ASN1 flag to `OPENSSL_EC_EXPLICIT_CURVE`. This is a follow-up to openssl#12312 (cherry picked from commit b0527a5)
|
The fix touches public API, so mandatory OTC decision label added. |
|
Apart from the ongoing discussion on consistency in handling I still have the same questions about these failures:
I don't like the idea of disabling the test in Windows: if those functions are supposed to work in a Windows environment. |
(readapted from 5c69c66a6972f84d56160c9ea4b30bab8fc2d3d4 by @bernd-edlinger)
|
@levitte can you check if d1202e8 is OK or if I need to tweak it differently? One thought I had ( which maybe won't work because this whole windows workaround remains a misery to me) was to instead incorporate this in the test static lib rather than each individual binary that might need it. |
|
The last two commits do not change any code, and are just there as a remainder about fixing the typos in the commit messages when merging. |
Ping @levitte |
|
OTC: This is fine for inclusion in 3.0 subject to the normal review process. |
|
I assume @levitte has no objections regarding #16355 (comment) |
|
24 hours has passed since 'approval: done' was set, but as this PR has been updated in that time the label 'approval: ready to merge' is not being automatically set. Please review the updates and set the label manually. |
|
@romen will you merge this or should I? |
|
I was planning to do it in the weekend but I had to deal with unexpected things. I will merge it shortly as I had to squash and fix commit messages! |
These functions are part of the public API but we don't have tests covering their usage. They are actually implemented as macros and the absence of tests has caused them to fall out-of-sync with the latest changes to ASN1 related functions and cause compilation warnings. @@ Note: This commit limits to ECPKParameters as a type. Reviewed-by: Tomas Mraz <[email protected]> (Merged from #16355)
These functions are part of the public API but we don't have tests covering their usage. They are actually implemented as macros and the absence of tests has caused them to fall out-of-sync with the latest changes to ASN1 related functions and cause compilation warnings. This commit fixes the public headers to reflect these changes. Fixes #12443 Reviewed-by: Tomas Mraz <[email protected]> (Merged from #16355)
Some curves don't have an associated OID: for those we should not default to `OPENSSL_EC_NAMED_CURVE` encoding of parameters and instead set the ASN1 flag to `OPENSSL_EC_EXPLICIT_CURVE`. This is a follow-up to #12312 Reviewed-by: Tomas Mraz <[email protected]> (Merged from #16355)
(readapted from 5c69c66a6972f84d56160c9ea4b30bab8fc2d3d4 by @bernd-edlinger) Reviewed-by: Tomas Mraz <[email protected]> (Merged from #16355)
|
Merged to
Thanks @t8m for the review, @bernd-edlinger to solve the Applink issue! |
This PR is the
mastercounterpart of #12457, and fixes #12443.This is the original message for the 1.1.1 commit:
In
masterwe inherited the defect in the public header.The test for this uncovered a second bug, dealing with curves without associated OIDs.
This PR (as well as #12457) also includes a fix for this second issue.
Tasks
mastermasterif needed*_fp()tests in Windows