Mercurial > dropbear
comparison process-packet.c @ 1681:435cfb9ec96e
send and handle SSH_MSG_EXT_INFO only at the correct point
- other fixes for rsa pubkey auth
- only include ext-info handling when rsa pubkey auth is compiled
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 24 May 2020 14:16:58 +0800 |
parents | 9169e4e7cbee |
children | 41bf8f216644 |
comparison
equal
deleted
inserted
replaced
1680:5e763ad6e2e0 | 1681:435cfb9ec96e |
---|---|
48 | 48 |
49 TRACE2(("enter process_packet")) | 49 TRACE2(("enter process_packet")) |
50 | 50 |
51 type = buf_getbyte(ses.payload); | 51 type = buf_getbyte(ses.payload); |
52 TRACE(("process_packet: packet type = %d, len %d", type, ses.payload->len)) | 52 TRACE(("process_packet: packet type = %d, len %d", type, ses.payload->len)) |
53 | |
54 ses.lastpacket = type; | |
55 | 53 |
56 now = monotonic_now(); | 54 now = monotonic_now(); |
57 ses.last_packet_time_keepalive_recv = now; | 55 ses.last_packet_time_keepalive_recv = now; |
58 | 56 |
59 /* These packets we can receive at any time */ | 57 /* These packets we can receive at any time */ |
152 /* TODO do something more here? */ | 150 /* TODO do something more here? */ |
153 TRACE(("preauth unknown packet")) | 151 TRACE(("preauth unknown packet")) |
154 recv_unimplemented(); | 152 recv_unimplemented(); |
155 | 153 |
156 out: | 154 out: |
155 ses.lastpacket = type; | |
157 buf_free(ses.payload); | 156 buf_free(ses.payload); |
158 ses.payload = NULL; | 157 ses.payload = NULL; |
159 | 158 |
160 TRACE2(("leave process_packet")) | 159 TRACE2(("leave process_packet")) |
161 } | 160 } |