Skip to content

mbedtls: replace mbedTLS allocator with SSH2 one where possible - #2550

Closed
vszakats wants to merge 1 commit into
libssh2:masterfrom
vszakats:mbed-more-ssh2-alloc
Closed

vszakats wants to merge 1 commit into
libssh2:masterfrom
vszakats:mbed-more-ssh2-alloc

Conversation

@vszakats

@vszakats vszakats commented Aug 27, 2026 •

Copy link
Copy Markdown
Member

Follow-up to d5149ca #2548

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 mbedTLS allocation for temporary private-key buffers with libssh2 session allocators.

Changes:

  • Allocate NUL-terminated RSA key buffers with SSH2_CALLOC.
  • Securely release them with ssh2_zero_free.

💡 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 420dbba Aug 27, 2026
@vszakats
vszakats deleted the mbed-more-ssh2-alloc branch August 27, 2026 23:43
vszakats added a commit that referenced this pull request Aug 28, 2026
Only a single caller remained after recent updates.

Follow-up to 62a2a7e #2552
Follow-up to 420dbba #2550

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