socket accept() optionally can be passed with struct sockaddr and size//t , which will then return details about the connected client.
It would be nice to have a similar API for ssh server as well.
sshbindaccept2(sshbind, sshsession, struct sockaddr , size//t )
This can be used for servers that want to be verbose about their connections.
Implementation should be plain simple
sshbindaccept(sshbind sshbind, sshsession session)
return ssh//bind//accept2(sshbind, session, NULL, NULL);
sshbindaccept(sshbind sshbind, sshsession session, struct sockaddr claddr, size//t clsize)
- Previous implementation of sshbindaccept, except for that, accept() will be passed with
- cladde and clsize **/