Mercurial > dropbear
comparison svr-auth.c @ 70:b0316ce64e4b
Merging in the changes from 0.41-0.43 main Dropbear tree
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 12 Aug 2004 16:41:58 +0000 |
parents | eee77ac31ccc |
children | 2e92778dd162 |
comparison
equal
deleted
inserted
replaced
69:59d16db56e9f | 70:b0316ce64e4b |
---|---|
89 | 89 |
90 /* handle a userauth request, check validity, pass to password or pubkey | 90 /* handle a userauth request, check validity, pass to password or pubkey |
91 * checking, and handle success or failure */ | 91 * checking, and handle success or failure */ |
92 void recv_msg_userauth_request() { | 92 void recv_msg_userauth_request() { |
93 | 93 |
94 unsigned char *username, *servicename, *methodname; | 94 unsigned char *username = NULL, *servicename = NULL, *methodname = NULL; |
95 unsigned int userlen, servicelen, methodlen; | 95 unsigned int userlen, servicelen, methodlen; |
96 | 96 |
97 TRACE(("enter recv_msg_userauth_request")); | 97 TRACE(("enter recv_msg_userauth_request")); |
98 | 98 |
99 /* ignore packets if auth is already done */ | 99 /* ignore packets if auth is already done */ |
273 * incrfail is whether to count this failure in the failure count (which | 273 * incrfail is whether to count this failure in the failure count (which |
274 * is limited. This function also handles disconnection after too many | 274 * is limited. This function also handles disconnection after too many |
275 * failures */ | 275 * failures */ |
276 void send_msg_userauth_failure(int partial, int incrfail) { | 276 void send_msg_userauth_failure(int partial, int incrfail) { |
277 | 277 |
278 buffer *typebuf; | 278 buffer *typebuf = NULL; |
279 | 279 |
280 TRACE(("enter send_msg_userauth_failure")); | 280 TRACE(("enter send_msg_userauth_failure")); |
281 | 281 |
282 CHECKCLEARTOWRITE(); | 282 CHECKCLEARTOWRITE(); |
283 | 283 |