You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Goldstein Lyor (JIRA)" <ji...@apache.org> on 2014/10/26 15:00:35 UTC

[jira] [Updated] (SSHD-366) Need to cross reference provided host keys with configured signature factories

     [ https://issues.apache.org/jira/browse/SSHD-366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Goldstein Lyor updated SSHD-366:
--------------------------------
    Attachment: 0005-Cross-reference-provided-host-keys-with-configured-s.patch

Attached is a proposed patch for the problem - it throws an SSH exception, but perhaps some other mechanism should be used (or perhaps some *IllegalStateException* would be better + logging)

> Need to cross reference provided host keys with configured signature factories
> ------------------------------------------------------------------------------
>
>                 Key: SSHD-366
>                 URL: https://issues.apache.org/jira/browse/SSHD-366
>             Project: MINA SSHD
>          Issue Type: Improvement
>    Affects Versions: 0.13.0
>            Reporter: Goldstein Lyor
>            Priority: Minor
>         Attachments: 0005-Cross-reference-provided-host-keys-with-configured-s.patch
>
>
> The code in _ServerSession#sendKexInit_ assumes that the provided key types from the _KeyPairProvided#getKeyTypes_ are the ones to use during the negotiation with the client. However, if there is no intersection between the 2, there is no detection or logging of the problem (even though the connection fails).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)