Repository navigation
feat(libSceLibreSsl3): implement EC_KEY_set_asn1_flag - #17544
oneandonlydean merged 3 commits into
Conversation
Store the flag on the key's group, following LibreSSL ec_key.c, and keep it when EC_KEY_set_group copies a group, as EC_GROUP_copy does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Independent Windows focused test of exact head |
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
|
Windows check of head Setup: Windows 11 Enterprise 22621, WinLibs GCC 15.2 UCRT, Release. The hosted Windows check does not run these tests on pull requests.
AI-assisted: yes. |
…ec-key-set-asn1-flag Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What
Implements
EC_KEY_set_asn1_flaginlibSceLibreSsl3.EC_KEY_new_by_curve_namealready works, and code commonly follows it withEC_KEY_set_asn1_flag(key, OPENSSL_EC_NAMED_CURVE), which threw until now.ec_key.c, the flag is stored on the key's group without validation, and a key without a group is unchanged. A null key throws, like the sibling EC functions.EcGroupinlibSceLibreSslgainsasn1Flag, andEC_KEY_set_groupcopies it, as LibreSSL'sEC_GROUP_copydoes.libSceLibreSsl3needs the completeEcGrouptype, so it gets the mbedtls include path. It does not link mbedtls.Known gaps, recorded in
docs/dev/debt/libSceLibreSsl3.md:libSceLibreSslfollows. LibreSSL 4.0.0 starts atOPENSSL_EC_NAMED_CURVE, and the console's default is unknown.Tested
Arch Linux on WSL2, GCC 16.2.1, Release build:
ctest --test-dir build -R 'guest_libressl|public_headers': 170 of 170 pass.guest_libressl3_ec_key_asn1_flagtest covers the default value, set and clear, an unvalidated value, a key without a group, the copy inEC_KEY_set_group(including a key's own group and that the copy is independent), and a null key.EC_KEY_set_groupmakes the new test abort withcopy keeps the flag.python3 tools/check_conventions.py --base origin/mainpasses.Not tested on Windows, on a console or with a title.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code