Repository navigation
Conversation
There was a problem hiding this comment.
Pull request overview
This PR consolidates the non-OpenSSL backend stub implementations of ssh2_sk_pub_keyfilememory() into a single shared stub, aiming to reduce duplication across crypto backends while keeping the OpenSSL backend’s real implementation intact.
Changes:
- Removed duplicate
ssh2_sk_pub_keyfilememory()stub implementations from multiple backend source files. - Added a
LIBSSH2_ECDSA_SKcapability macro to the OpenSSL backend header. - Introduced a shared stub implementation in
src/misc.cthat reports the feature as unimplemented for backends that don’t support it.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/wincng.c | Removes the WinCNG backend-local stub for ssh2_sk_pub_keyfilememory(). |
| src/os400qc3.c | Removes the OS/400 QC3 backend-local stub for ssh2_sk_pub_keyfilememory(). |
| src/mbedtls.c | Removes the mbedTLS backend-local stub for ssh2_sk_pub_keyfilememory(). |
| src/libgcrypt.c | Removes the libgcrypt backend-local stub for ssh2_sk_pub_keyfilememory(). |
| src/openssl.h | Adds LIBSSH2_ECDSA_SK to mark the OpenSSL backend as implementing ssh2_sk_pub_keyfilememory(). |
| src/misc.c | Adds a centralized stub implementation intended for backends without SK support. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This reverts commit a749665.
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.
Follow-up to ed439a2 #698