Mercurial > dropbear
comparison 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 |
comparison
equal
deleted
inserted
replaced
1820:e9854650d45b | 1821:df8d8ec1801c |
---|---|
174 sigbuf = buf_new(4 + ses.session_id->len + ses.writepayload->len); | 174 sigbuf = buf_new(4 + ses.session_id->len + ses.writepayload->len); |
175 buf_putbufstring(sigbuf, ses.session_id); | 175 buf_putbufstring(sigbuf, ses.session_id); |
176 buf_putbytes(sigbuf, ses.writepayload->data, ses.writepayload->len); | 176 buf_putbytes(sigbuf, ses.writepayload->data, ses.writepayload->len); |
177 cli_buf_put_sign(ses.writepayload, key, sigtype, sigbuf); | 177 cli_buf_put_sign(ses.writepayload, key, sigtype, sigbuf); |
178 buf_free(sigbuf); /* Nothing confidential in the buffer */ | 178 buf_free(sigbuf); /* Nothing confidential in the buffer */ |
179 cli_ses.is_trivial_auth = 0; | |
179 } | 180 } |
180 | 181 |
181 encrypt_packet(); | 182 encrypt_packet(); |
182 TRACE(("leave send_msg_userauth_pubkey")) | 183 TRACE(("leave send_msg_userauth_pubkey")) |
183 } | 184 } |