Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create new AlgorithmSignerWithAlgoName interface that will return the algorithm being signed with; use this to make publicKeyCallback work for custom signers. #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SwampDragons
Copy link
Owner

…nnection

@SwampDragons SwampDragons changed the title hack to demonstrate that algorithm name is the problem with client co… Create new AlgorithmSignerWithAlgoName interface that will return the algorithm being signed with. Jun 26, 2020
@SwampDragons SwampDragons changed the title Create new AlgorithmSignerWithAlgoName interface that will return the algorithm being signed with. Create new AlgorithmSignerWithAlgoName interface that will return the algorithm being signed with; use this to make publicKeyCallback work for custom signers. Jun 26, 2020
… during the ssh handshake.

To accomplish this, we create  a new "AlgorithmSignerWithAlgoName" interface that returns the custom algorithm being used for signing. This allows publicKeyCallback to handshake using the correct key algorihm in situations where key type != key algorithm. For example, ssh-rsa keys may need to handshake using the "rsa-sha2-256" algorithm if using a recent version of openssh that has deprecated the ssh-rsa sha1 algorithm.

Fixes #39885
@SwampDragons SwampDragons force-pushed the fix_ssh_rsa_sha2_client branch from ab67910 to 0bc1dab Compare July 1, 2020 17:43
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.

1 participant