src/server/ssh_server/ssh_callbacks.cc
/**
 * Handle SSH session password authentication requests
 */
Handle SSH session password authentication requests
Handle SSH session password authentication requests
int session_auth_password_cb(ssh_session session,
                             char const *user, char const *password,
                             void *userdata)
{
	Ssh::Server &server = *reinterpret_cast<Ssh::Server*>(userdata);
	return server.auth_password(session, user, password) ? SSH_AUTH_SUCCESS
	                                                     : SSH_AUTH_DENIED;
}
int session_auth_password_cb ( ssh_session session , char const * user , char const * password , void * userdata ) { Ssh :: Server & server = * reinterpret_cast < Ssh :: Server * > ( userdata ) ; return server . auth_password ( session , user , password ) ? SSH_AUTH_SUCCESS : SSH_AUTH_DENIED ; }
Handle SSH session password authentication requests
Handle SSH session password authentication requests