Repository navigation
Conversation
There was a problem hiding this comment.
Pull request overview
Propagates session-aware allocation through cryptographic verification and DSA signing paths.
Changes:
- Adds session parameters to internal crypto APIs and callers.
- Replaces selected bare allocations with session allocators.
- Updates backend implementations and crypto documentation.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
src/wincng.c |
Converts Windows CNG temporary allocations. |
src/os400qc3.c |
Updates RSA verification signatures. |
src/openssl.c |
Uses session allocation for RSA hashes. |
src/mbedtls.c |
Uses session allocation for RSA hashes. |
src/libgcrypt.c |
Updates RSA and DSA interfaces. |
src/hostkey.c |
Passes sessions into crypto operations. |
src/HACKING-CRYPTO.md |
Documents revised crypto signatures. |
src/crypto.h |
Declares revised internal APIs. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 10 out of 10 changed files in this pull request and generated no new comments.
Suppressed comments (1)
src/wincng.c:2582
SSH2_FEEEis not defined, so WinCNG builds with ECDSA enabled fail to compile in this cleanup path. Use the session-awareSSH2_FREEmacro used for the matching allocation.
SSH2_FEEE(session, cng_signature);
|
|
||
| if(secret) | ||
| free(secret); | ||
| SSH2_FREE(session, secret); |
Member
Author
There was a problem hiding this comment.
Right, pre-existing/unrelated.
vszakats
added a commit
that referenced
this pull request
Aug 27, 2026
…penSSL 1.1.1 Also: - use separate variable to store the secret buffer size and the length of the actual secret. - fix the type of the actual secret size to be `int` to match the API and avoid a cast. Reported by Copilot Bug: #2544 (comment) Follow-up to aba34f5 #41 Closes #2545
|
|
||
| if(temp_buffer) | ||
| free(temp_buffer); | ||
| SSH2_FREE(session, temp_buffer); |
Member
Author
There was a problem hiding this comment.
Another pre-existing mismatch. Fixing in a next PR.
vszakats
added a commit
that referenced
this pull request
Aug 27, 2026
… with OpenSSL 3+ Reported by Copilot Bug: #2544 (comment) Follow-up to b0ab005 #1207 Closes #2547
This was referenced Aug 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Also:
and MSVC.
ssh2_zero_free()to clear memory and free usingSSH2_FREE().ssh2_zero_free().sessionwasalready available.