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
...@@ -135,6 +135,8 @@ int main(int argc, char **argv) ...@@ -135,6 +135,8 @@ int main(int argc, char **argv)
struct alist *algorithms; struct alist *algorithms;
struct make_kexinit *make_kexinit; struct make_kexinit *make_kexinit;
struct packet_handler *kexinit_handler; struct packet_handler *kexinit_handler;
int advertised_methods[] = { ATOM_PASSWORD, -1 };
/* For filtering messages. Could perhaps also be used when converting /* For filtering messages. Could perhaps also be used when converting
* strings to and from UTF8. */ * strings to and from UTF8. */
...@@ -195,7 +197,8 @@ int main(int argc, char **argv) ...@@ -195,7 +197,8 @@ int main(int argc, char **argv)
(make_alist (make_alist
(1, ATOM_SSH_USERAUTH, (1, ATOM_SSH_USERAUTH,
make_userauth_service make_userauth_service
(make_alist(1, ATOM_PASSWORD, (advertised_methods,
make_alist(1, ATOM_PASSWORD,
make_unix_userauth make_unix_userauth
(make_alist(1, (make_alist(1,
ATOM_SSH_CONNECTION, 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