Lines Matching refs:typep

1337 ssh_packet_read_seqnr(struct ssh *ssh, u_char *typep, u_int32_t *seqnr_p)  in ssh_packet_read_seqnr()  argument
1358 if ((r = ssh_packet_read_poll_seqnr(ssh, typep, seqnr_p)) != 0) in ssh_packet_read_seqnr()
1361 if (*typep != SSH_MSG_NONE) in ssh_packet_read_seqnr()
1430 ssh_packet_read_poll2_mux(struct ssh *ssh, u_char *typep, u_int32_t *seqnr_p) in ssh_packet_read_poll2_mux() argument
1439 *typep = SSH_MSG_NONE; in ssh_packet_read_poll2_mux()
1457 (r = sshbuf_get_u8(state->incoming_packet, typep)) != 0) in ssh_packet_read_poll2_mux()
1459 if (ssh_packet_log_type(*typep)) in ssh_packet_read_poll2_mux()
1460 debug3_f("type %u", *typep); in ssh_packet_read_poll2_mux()
1468 ssh_packet_read_poll2(struct ssh *ssh, u_char *typep, u_int32_t *seqnr_p) in ssh_packet_read_poll2() argument
1480 return ssh_packet_read_poll2_mux(ssh, typep, seqnr_p); in ssh_packet_read_poll2()
1482 *typep = SSH_MSG_NONE; in ssh_packet_read_poll2()
1669 if ((r = sshbuf_get_u8(state->incoming_packet, typep)) != 0) in ssh_packet_read_poll2()
1671 if (ssh_packet_log_type(*typep)) in ssh_packet_read_poll2()
1672 debug3("receive packet: type %u", *typep); in ssh_packet_read_poll2()
1673 if (*typep < SSH2_MSG_MIN) { in ssh_packet_read_poll2()
1675 "Invalid ssh2 packet type: %d", *typep)) != 0 || in ssh_packet_read_poll2()
1681 (r = state->hook_in(ssh, state->incoming_packet, typep, in ssh_packet_read_poll2()
1684 if (*typep == SSH2_MSG_USERAUTH_SUCCESS && !state->server_side) in ssh_packet_read_poll2()
1689 fprintf(stderr, "read/plain[%d]:\r\n", *typep); in ssh_packet_read_poll2()
1694 if (*typep == SSH2_MSG_NEWKEYS && ssh->kex->kex_strict) { in ssh_packet_read_poll2()
1706 ssh_packet_read_poll_seqnr(struct ssh *ssh, u_char *typep, u_int32_t *seqnr_p) in ssh_packet_read_poll_seqnr() argument
1717 r = ssh_packet_read_poll2(ssh, typep, seqnr_p); in ssh_packet_read_poll_seqnr()
1720 if (*typep == 0) { in ssh_packet_read_poll_seqnr()
1725 DBG(debug("received packet type %d", *typep)); in ssh_packet_read_poll_seqnr()
1728 if (*typep == SSH2_MSG_DISCONNECT) { in ssh_packet_read_poll_seqnr()
1753 switch (*typep) { in ssh_packet_read_poll_seqnr()