version 1.8, 2019/01/19 21:31:32 |
version 1.9, 2019/01/19 21:33:14 |
|
|
int r; |
int r; |
|
|
if ((r = ssh_packet_read_seqnr(active_state, &type, seqnr)) != 0) |
if ((r = ssh_packet_read_seqnr(active_state, &type, seqnr)) != 0) |
sshpkt_fatal(active_state, __func__, r); |
sshpkt_fatal(active_state, r, "%s", __func__); |
return type; |
return type; |
} |
} |
|
|
|
|
int r; |
int r; |
|
|
if ((r = ssh_packet_read_poll_seqnr(active_state, &type, seqnr))) |
if ((r = ssh_packet_read_poll_seqnr(active_state, &type, seqnr))) |
sshpkt_fatal(active_state, __func__, r); |
sshpkt_fatal(active_state, r, "%s", __func__); |
return type; |
return type; |
} |
} |
|
|
|
|
int r; |
int r; |
|
|
if ((r = ssh_packet_process_incoming(active_state, buf, len)) != 0) |
if ((r = ssh_packet_process_incoming(active_state, buf, len)) != 0) |
sshpkt_fatal(active_state, __func__, r); |
sshpkt_fatal(active_state, r, "%s", __func__); |
} |
} |
|
|
void |
void |
|
|
int r; |
int r; |
|
|
if ((r = ssh_packet_write_wait(active_state)) != 0) |
if ((r = ssh_packet_write_wait(active_state)) != 0) |
sshpkt_fatal(active_state, __func__, r); |
sshpkt_fatal(active_state, r, "%s", __func__); |
} |
} |
|
|
void |
void |
|
|
int r; |
int r; |
|
|
if ((r = ssh_packet_write_poll(active_state)) != 0) |
if ((r = ssh_packet_write_poll(active_state)) != 0) |
sshpkt_fatal(active_state, __func__, r); |
sshpkt_fatal(active_state, r, "%s", __func__); |
} |
} |
|
|
void |
void |
|
|
int r; |
int r; |
|
|
if ((r = ssh_packet_read_expect(active_state, expected_type)) != 0) |
if ((r = ssh_packet_read_expect(active_state, expected_type)) != 0) |
sshpkt_fatal(active_state, __func__, r); |
sshpkt_fatal(active_state, r, "%s", __func__); |
} |
} |