diff cli-authpasswd.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 750ec4ec4cbe
children 62e4baa059c3
line wrap: on
line diff
--- a/cli-authpasswd.c	Thu Aug 19 23:17:34 2021 +0800
+++ b/cli-authpasswd.c	Thu Aug 19 17:37:14 2021 +0200
@@ -155,7 +155,7 @@
 
 	encrypt_packet();
 	m_burn(password, strlen(password));
-
+	cli_ses.is_trivial_auth = 0;
 	TRACE(("leave cli_auth_password"))
 }
 #endif	/* DROPBEAR_CLI_PASSWORD_AUTH */