Commit 891171c1 authored by Niels Möller's avatar Niels Möller

Pass an advertised_methods list to the userauth service.

Rev: src/lshd.c:1.18
parent 76697798
......@@ -136,6 +136,8 @@ int main(int argc, char **argv)
struct make_kexinit *make_kexinit;
struct packet_handler *kexinit_handler;
int advertised_methods[] = { ATOM_PASSWORD, -1 };
/* For filtering messages. Could perhaps also be used when converting
* strings to and from UTF8. */
setlocale(LC_CTYPE, "");
......@@ -195,7 +197,8 @@ int main(int argc, char **argv)
(make_alist
(1, ATOM_SSH_USERAUTH,
make_userauth_service
(make_alist(1, ATOM_PASSWORD,
(advertised_methods,
make_alist(1, ATOM_PASSWORD,
make_unix_userauth
(make_alist(1,
ATOM_SSH_CONNECTION,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment