ref: f3e24e40bd024de6c8e4766b5d80089b3232ef1a
dir: /sys/src/cmd/ssh/authsrvpasswd.c/
#include "ssh.h"
static AuthInfo*
authsrvpasswordfn(Conn *c, Msg *m)
{
char *pass;
AuthInfo *ai;
pass = getstring(m);
ai = auth_userpasswd(c->user, pass);
free(m);
return ai;
}
Authsrv authsrvpassword =
{
SSH_AUTH_PASSWORD,
"password",
SSH_CMSG_AUTH_PASSWORD,
authsrvpasswordfn,
};