Skip to content

openssl: fix importing DSA private keys from blob - #2395

Closed
vszakats wants to merge 1 commit into
libssh2:masterfrom
vszakats:ssh-dsa
Closed

vszakats wants to merge 1 commit into
libssh2:masterfrom
vszakats:ssh-dsa

Conversation

@vszakats

Copy link
Copy Markdown
Member

Reported by Copilot
Bug: #2394 (comment)
Follow-up to 0309229 #248

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

Fixes DSA OpenSSH private key import from an in-memory blob in the OpenSSL backend by using the correct OpenSSH key type identifier, aligning the blob parsing path with the rest of the codebase’s DSA handling ("ssh-dss").

Changes:

  • Update DSA OpenSSH blob import to use "ssh-dss" instead of "ssh-dsa".

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

Comment thread src/openssl.c
Comment on lines +1663 to 1665
rc = ossl_key_from_openssh_blob(session, (void **)dsa, "ssh-dss",
NULL, NULL, NULL,
blob, blob_len, passphrase);

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess that's fine, given that DSA is insecure and practically deprecated.

@vszakats vszakats closed this in e295f4f Jul 22, 2026
@vszakats
vszakats deleted the ssh-dsa branch July 22, 2026 14:31
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