src/server/ssh_server/ssh_callbacks.cc
/**
 * Handle SSH session public-key authentication requests
 */
Handle SSH session public-key authentication requests
Handle SSH session public - key authentication requests
int session_auth_pubkey_cb(ssh_session session, char const *user,
                           struct ssh_key_struct *pubkey,
                           char state, void *userdata)
{
	Ssh::Server &server = *reinterpret_cast<Ssh::Server*>(userdata);
	return server.auth_pubkey(session, user, pubkey, state) ? SSH_AUTH_SUCCESS
	                                                        : SSH_AUTH_DENIED;
}
int session_auth_pubkey_cb ( ssh_session session , char const * user , struct ssh_key_struct * pubkey , char state , void * userdata ) { Ssh :: Server & server = * reinterpret_cast < Ssh :: Server * > ( userdata ) ; return server . auth_pubkey ( session , user , pubkey , state ) ? SSH_AUTH_SUCCESS : SSH_AUTH_DENIED ; }
Handle SSH session public-key authentication requests
Handle SSH session public - key authentication requests