Skip to content

crypto, openssl: drop 4 unused private global functions - #2260

Closed
vszakats wants to merge 2 commits into
libssh2:masterfrom
vszakats:sk
Closed

vszakats wants to merge 2 commits into
libssh2:masterfrom
vszakats:sk

Conversation

@vszakats

@vszakats vszakats commented Jul 8, 2026 •

Copy link
Copy Markdown
Member

And the openssl local functions they called. These functions were not
called by any public interface, or tests.

Follow-up to ed439a2 #698

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

This PR removes four unused internal “SK” (security key) private-key helper functions from the OpenSSL backend, along with their internal header declarations. It continues the follow-up cleanup from #698 by eliminating code paths that are not referenced by any public interface or tests.

Changes:

  • Deleted unused OpenSSL-backend helpers for loading/parsing sk-ecdsa-* and [email protected] private keys from file/memory.
  • Removed the corresponding internal declarations from src/crypto.h.
  • Kept the remaining SK parsing/signing support that is still referenced (e.g., OpenSSH SK blob parsing helpers used elsewhere in openssl.c).

Reviewed changes

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

File Description
src/openssl.c Removes unused SK private-key loader wrappers and related local helper(s) that were only used by those wrappers.
src/crypto.h Drops internal declarations for the removed unused SK helper functions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@vszakats vszakats closed this in b4b005f Jul 9, 2026
@vszakats
vszakats deleted the sk branch July 9, 2026 01:22
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