diff cli-authinteract.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 dc615fdb7c06
line wrap: on
line diff
--- a/cli-authinteract.c	Thu Aug 19 23:17:34 2021 +0800
+++ b/cli-authinteract.c	Thu Aug 19 17:37:14 2021 +0200
@@ -114,6 +114,7 @@
 	m_free(instruction);
 
 	for (i = 0; i < num_prompts; i++) {
+		cli_ses.is_trivial_auth = 0;
 		unsigned int response_len = 0;
 		prompt = buf_getstring(ses.payload, NULL);
 		cleantext(prompt);