Skip to content

openssl: pass session to ssh2_ecdsa_curve_name_with_octal_new(), use SSH2 allocators - #2549

Closed
vszakats wants to merge 4 commits into
libssh2:masterfrom
vszakats:ossl-alloc-more
Closed

vszakats wants to merge 4 commits into
libssh2:masterfrom
vszakats:ossl-alloc-more

Conversation

@vszakats

@vszakats vszakats commented Aug 27, 2026 •

Copy link
Copy Markdown
Member

Replacing OPENSSL_malloc()/OPENSSL_zalloc().

Follow-up to a2ac6bd #2544

@vszakats vszakats changed the title openssl: propagate session to ssh2_ecdsa_curve_name_with_octal_new(), use SSH2 allocators openssl: pass session to ssh2_ecdsa_curve_name_with_octal_new(), use SSH2 allocators Aug 27, 2026
@vszakats
vszakats requested a balanced review from Copilot August 27, 2026 22:51

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

Propagates LIBSSH2_SESSION into ECDSA public-key creation so OpenSSL 3 uses libssh2’s configured allocators.

Changes:

  • Updates the crypto API and all backend implementations/callers.
  • Replaces OpenSSL temporary allocations with SSH2_* allocators.
  • Updates crypto documentation.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/crypto.h Updates the internal API signature.
src/openssl.c Uses session allocators and updates callers.
src/mbedtls.c Accepts the new session argument.
src/wincng.c Accepts the new session argument.
src/hostkey.c Passes the session during host-key parsing.
src/HACKING-CRYPTO.md Documents the updated signature.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/openssl.c Resolved

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

Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.

@vszakats vszakats closed this in 47cb260 Aug 27, 2026
@vszakats
vszakats deleted the ossl-alloc-more branch August 27, 2026 23:43
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