summaryrefslogtreecommitdiffhomepage
path: root/cli-authpubkey.c
diff options
context:
space:
mode:
authorManfred Kaiser <37737811+manfred-kaiser@users.noreply.github.com>2021-08-19 17:37:14 +0200
committerGitHub <noreply@github.com>2021-08-19 23:37:14 +0800
commit210a9833496ed2a93b8da93924874938127ce0b5 (patch)
treeb7bbba8079879cc3bc057a2eba8433f0e0ae4094 /cli-authpubkey.c
parent69e5709f75981bf0f5147c5f1d95a0f4fdf11b6f (diff)
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
Diffstat (limited to 'cli-authpubkey.c')
-rw-r--r--cli-authpubkey.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cli-authpubkey.c b/cli-authpubkey.c
index 28c54fa..c0da77f 100644
--- a/cli-authpubkey.c
+++ b/cli-authpubkey.c
@@ -176,6 +176,7 @@ static void send_msg_userauth_pubkey(sign_key *key, enum signature_type sigtype,
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();