ref: 7b977c7290db3da3d6faa94606a8b7f1e7d39a1b
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,
};