comparison cli-session.c @ 1821:df8d8ec1801c

added option to disable trivial auth methods (#128) * added option to disable trivial auth methods * rename argument to match with other ssh clients * fixed trivial auth detection for pubkeys
author Manfred Kaiser <37737811+manfred-kaiser@users.noreply.github.com>
date Thu, 19 Aug 2021 17:37:14 +0200
parents 249681d9ecda
children c32976db772f
comparison
equal deleted inserted replaced
1820:e9854650d45b 1821:df8d8ec1801c
163 TRACE(("proxy command PID='%d'", proxy_cmd_pid)); 163 TRACE(("proxy command PID='%d'", proxy_cmd_pid));
164 164
165 /* Auth */ 165 /* Auth */
166 cli_ses.lastprivkey = NULL; 166 cli_ses.lastprivkey = NULL;
167 cli_ses.lastauthtype = 0; 167 cli_ses.lastauthtype = 0;
168 cli_ses.is_trivial_auth = 1;
168 169
169 /* For printing "remote host closed" for the user */ 170 /* For printing "remote host closed" for the user */
170 ses.remoteclosed = cli_remoteclosed; 171 ses.remoteclosed = cli_remoteclosed;
171 172
172 ses.extra_session_cleanup = cli_session_cleanup; 173 ses.extra_session_cleanup = cli_session_cleanup;