Skip to content

openssl: sync patterns between functions (tidy-up) - #2442

Closed
vszakats wants to merge 1 commit into
libssh2:masterfrom
vszakats:ossltidy
Closed

vszakats wants to merge 1 commit into
libssh2:masterfrom
vszakats:ossltidy

Conversation

@vszakats

Copy link
Copy Markdown
Member
  • ssh2_mlkem_new() with ssh2_curve25519_new().
  • also inline two comments.

Follow-up to 1164743 #2308
Follow-up to 41389f8 #2029
Follow-up to 3ba252e #1644

- `ssh2_mlkem_new()` with `ssh2_curve25519_new()`.
- also inline two comments.

Follow-up to 1164743 libssh2#2308
Follow-up to 41389f8 libssh2#2029
Follow-up to 3ba252e libssh2#1644

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR performs a small OpenSSL backend tidy-up to keep the “alloc/check/extract/verify length” pattern consistent between key-generation helpers (ssh2_mlkem_new() and sibling functions like ssh2_curve25519_new()), and inlines a couple of “success” comments for readability.

Changes:

  • In ssh2_mlkem_new(), initialize actualPrivLen / actualPubLen before allocating/extracting to match the surrounding pattern.
  • Inline the “success” comment on rc = 0 in both ssh2_mlkem_new() and ssh2_curve25519_new().

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@vszakats vszakats closed this in 9a376a8 Jul 28, 2026
@vszakats
vszakats deleted the ossltidy branch July 28, 2026 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants