comparison 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
comparison
equal deleted inserted replaced
1820:e9854650d45b 1821:df8d8ec1801c
112 fprintf(stderr, "%s", instruction); 112 fprintf(stderr, "%s", instruction);
113 } 113 }
114 m_free(instruction); 114 m_free(instruction);
115 115
116 for (i = 0; i < num_prompts; i++) { 116 for (i = 0; i < num_prompts; i++) {
117 cli_ses.is_trivial_auth = 0;
117 unsigned int response_len = 0; 118 unsigned int response_len = 0;
118 prompt = buf_getstring(ses.payload, NULL); 119 prompt = buf_getstring(ses.payload, NULL);
119 cleantext(prompt); 120 cleantext(prompt);
120 121
121 echo = buf_getbool(ses.payload); 122 echo = buf_getbool(ses.payload);