Andrew C created SSHD-211:
-----------------------------

             Summary: Allow custom server services
                 Key: SSHD-211
                 URL: https://issues.apache.org/jira/browse/SSHD-211
             Project: MINA SSHD
          Issue Type: Bug
    Affects Versions: 0.8.0
            Reporter: Andrew C
         Attachments: sshd-service-wip.patch

I'm implementing a custom server/protocol over sshd but to do it I'm extending 
/ modifying the existing ServerSession when instead I should be adding a custom 
service to the existing ServerSession.

Attached a work-in-progress that is sufficient to illustrate the basic theory 
(but not much more):

- add a Service interface
- add a ServiceFactory to SshServer that instantiates a Service given its name 
(e.g., "ssh-userauth" or "ssh-connection")
- implement UserAuthService (ssh-userauth) and ConnectionService 
(ssh-connection) using code extracted from *Session
- add a currentService to ServerSession and set it when it receives 
aSSH_MSG_SERVICE_REQUEST and then pass messages along to that (the 
UserAuthService, once completed, does the same thing with its requested service)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to