Skip to content

Comments

Remove TEST_strn2_ functions#29627

Closed
paulidale wants to merge 3 commits intoopenssl:masterfrom
paulidale:test-strn
Closed

Remove TEST_strn2_ functions#29627
paulidale wants to merge 3 commits intoopenssl:masterfrom
paulidale:test-strn

Conversation

@paulidale
Copy link
Contributor

These functions are rarely used and the _ne flavour is unused. Passing two lengths to a wrapper for strncmp(3) makes defining semantics rather tricky (especially in the _ne case).

Alternative to #29390

  • documentation is added or updated
  • tests are added or updated

Their semantics are poorly defined and they are rarely used.  The _ne
version being completely unused & tricky to define properly.
@paulidale paulidale self-assigned this Jan 13, 2026
@paulidale paulidale added branch: master Applies to master branch approval: review pending This pull request needs review by a committer triaged: bug The issue/pr is/fixes a bug tests: present The PR has suitable tests present labels Jan 13, 2026
@paulidale paulidale requested a review from a team January 14, 2026 08:04
@paulidale paulidale added approval: done This pull request has the required number of approvals and removed approval: review pending This pull request needs review by a committer labels Jan 14, 2026
@openssl-machine openssl-machine added approval: ready to merge The 24 hour grace period has passed, ready to merge and removed approval: done This pull request has the required number of approvals labels Jan 15, 2026
@openssl-machine
Copy link
Collaborator

This pull request is ready to merge

@paulidale
Copy link
Contributor Author

Merged, thanks for the quick reviews.

@paulidale paulidale closed this Jan 15, 2026
openssl-machine pushed a commit that referenced this pull request Jan 15, 2026
Their semantics are poorly defined and they are rarely used.  The _ne
version being completely unused & tricky to define properly.

Reviewed-by: Norbert Pocs <[email protected]>
Reviewed-by: Nikola Pajkovsky <[email protected]>
Reviewed-by: Frederik Wedel-Heinen <[email protected]>
(Merged from #29627)
openssl-machine pushed a commit that referenced this pull request Jan 15, 2026
Reviewed-by: Norbert Pocs <[email protected]>
Reviewed-by: Nikola Pajkovsky <[email protected]>
Reviewed-by: Frederik Wedel-Heinen <[email protected]>
(Merged from #29627)
openssl-machine pushed a commit that referenced this pull request Jan 15, 2026
Reviewed-by: Norbert Pocs <[email protected]>
Reviewed-by: Nikola Pajkovsky <[email protected]>
Reviewed-by: Frederik Wedel-Heinen <[email protected]>
(Merged from #29627)
@t8m t8m added triaged: refactor The issue/pr requests/implements refactoring and removed triaged: bug The issue/pr is/fixes a bug labels Jan 16, 2026
@fwh-dc fwh-dc mentioned this pull request Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approval: ready to merge The 24 hour grace period has passed, ready to merge branch: master Applies to master branch tests: present The PR has suitable tests present triaged: refactor The issue/pr requests/implements refactoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants