Skip to content

openssl: replace OpenSSL allocator with SSH2 one where possible - #2548

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

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

Conversation

@vszakats

@vszakats vszakats commented Aug 27, 2026 •

Copy link
Copy Markdown
Member

Follow-up to b0ab005 #1207

@vszakats
vszakats requested a balanced review from Copilot August 27, 2026 21:05
@vszakats vszakats changed the title openssl: replace OpenSSL allocators with SSH2 ones where possible openssl: replace OpenSSL allocator with SSH2 one where possible Aug 27, 2026

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

Replaces eligible OpenSSL-managed temporary buffers with libssh2 session allocators.

Changes:

  • Uses session allocation for DSA signing and OpenSSL 3 ECDSA/ECDH buffers.
  • Securely clears temporary buffers before freeing them.

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

@vszakats vszakats closed this in d5149ca Aug 27, 2026
@vszakats
vszakats deleted the ossl-more-ssh2-alloc branch August 27, 2026 21:17
vszakats added a commit that referenced this pull request Aug 27, 2026
vszakats added a commit to vszakats/libssh2 that referenced this pull request Aug 28, 2026
vszakats added a commit that referenced this pull request Aug 29, 2026
…()`, `ssh2_dsa_new()`

Follow-up to 5ef9591 #2559
Follow-up to d5149ca #2548
Follow-up to b0ab005 #1207

Closes #2564
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