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
This commit is contained in:
Manfred Kaiser
2021-08-19 17:37:14 +02:00
committed by GitHub
parent 69e5709f75
commit 210a983349
8 changed files with 16 additions and 1 deletions

View File

@@ -114,6 +114,7 @@ void recv_msg_userauth_info_request() {
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);