diff cli-authpubkey.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 8dc43b30c6bf
children 62e4baa059c3
line wrap: on
line diff
--- a/cli-authpubkey.c	Thu Aug 19 23:17:34 2021 +0800
+++ b/cli-authpubkey.c	Thu Aug 19 17:37:14 2021 +0200
@@ -176,6 +176,7 @@
 		buf_putbytes(sigbuf, ses.writepayload->data, ses.writepayload->len);
 		cli_buf_put_sign(ses.writepayload, key, sigtype, sigbuf);
 		buf_free(sigbuf); /* Nothing confidential in the buffer */
+		cli_ses.is_trivial_auth = 0;
 	}
 
 	encrypt_packet();