1- /* $OpenBSD: channels.c,v 1.455 2026/02/14 00:18:34 jsg Exp $ */
1+ /* $OpenBSD: channels.c,v 1.456 2026/03/03 09:57:25 dtucker Exp $ */
22/*
33 * Author: Tatu Ylonen <ylo@cs.hut.fi>
44 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -3361,7 +3361,7 @@ channel_proxy_downstream(struct ssh *ssh, Channel *downstream)
33613361 * replaces local (proxy) channel ID with downstream channel ID.
33623362 */
33633363int
3364- channel_proxy_upstream (Channel * c , int type , u_int32_t seq , struct ssh * ssh )
3364+ channel_proxy_upstream (Channel * c , int type , uint32_t seq , struct ssh * ssh )
33653365{
33663366 struct sshbuf * b = NULL ;
33673367 Channel * downstream ;
@@ -3444,7 +3444,7 @@ channel_proxy_upstream(Channel *c, int type, u_int32_t seq, struct ssh *ssh)
34443444static int
34453445channel_parse_id (struct ssh * ssh , const char * where , const char * what )
34463446{
3447- u_int32_t id ;
3447+ uint32_t id ;
34483448 int r ;
34493449
34503450 if ((r = sshpkt_get_u32 (ssh , & id )) != 0 ) {
@@ -3473,7 +3473,7 @@ channel_from_packet_id(struct ssh *ssh, const char *where, const char *what)
34733473}
34743474
34753475int
3476- channel_input_data (int type , u_int32_t seq , struct ssh * ssh )
3476+ channel_input_data (int type , uint32_t seq , struct ssh * ssh )
34773477{
34783478 const u_char * data ;
34793479 size_t data_len , win_len ;
@@ -3541,11 +3541,11 @@ channel_input_data(int type, u_int32_t seq, struct ssh *ssh)
35413541}
35423542
35433543int
3544- channel_input_extended_data (int type , u_int32_t seq , struct ssh * ssh )
3544+ channel_input_extended_data (int type , uint32_t seq , struct ssh * ssh )
35453545{
35463546 const u_char * data ;
35473547 size_t data_len ;
3548- u_int32_t tcode ;
3548+ uint32_t tcode ;
35493549 Channel * c = channel_from_packet_id (ssh , __func__ , "extended data" );
35503550 int r ;
35513551
@@ -3594,7 +3594,7 @@ channel_input_extended_data(int type, u_int32_t seq, struct ssh *ssh)
35943594}
35953595
35963596int
3597- channel_input_ieof (int type , u_int32_t seq , struct ssh * ssh )
3597+ channel_input_ieof (int type , uint32_t seq , struct ssh * ssh )
35983598{
35993599 Channel * c = channel_from_packet_id (ssh , __func__ , "ieof" );
36003600 int r ;
@@ -3619,7 +3619,7 @@ channel_input_ieof(int type, u_int32_t seq, struct ssh *ssh)
36193619}
36203620
36213621int
3622- channel_input_oclose (int type , u_int32_t seq , struct ssh * ssh )
3622+ channel_input_oclose (int type , uint32_t seq , struct ssh * ssh )
36233623{
36243624 Channel * c = channel_from_packet_id (ssh , __func__ , "oclose" );
36253625 int r ;
@@ -3635,10 +3635,10 @@ channel_input_oclose(int type, u_int32_t seq, struct ssh *ssh)
36353635}
36363636
36373637int
3638- channel_input_open_confirmation (int type , u_int32_t seq , struct ssh * ssh )
3638+ channel_input_open_confirmation (int type , uint32_t seq , struct ssh * ssh )
36393639{
36403640 Channel * c = channel_from_packet_id (ssh , __func__ , "open confirmation" );
3641- u_int32_t remote_window , remote_maxpacket ;
3641+ uint32_t remote_window , remote_maxpacket ;
36423642 int r ;
36433643
36443644 if (channel_proxy_upstream (c , type , seq , ssh ))
@@ -3690,10 +3690,10 @@ reason2txt(int reason)
36903690}
36913691
36923692int
3693- channel_input_open_failure (int type , u_int32_t seq , struct ssh * ssh )
3693+ channel_input_open_failure (int type , uint32_t seq , struct ssh * ssh )
36943694{
36953695 Channel * c = channel_from_packet_id (ssh , __func__ , "open failure" );
3696- u_int32_t reason ;
3696+ uint32_t reason ;
36973697 char * msg = NULL ;
36983698 int r ;
36993699
@@ -3727,11 +3727,11 @@ channel_input_open_failure(int type, u_int32_t seq, struct ssh *ssh)
37273727}
37283728
37293729int
3730- channel_input_window_adjust (int type , u_int32_t seq , struct ssh * ssh )
3730+ channel_input_window_adjust (int type , uint32_t seq , struct ssh * ssh )
37313731{
37323732 int id = channel_parse_id (ssh , __func__ , "window adjust" );
37333733 Channel * c ;
3734- u_int32_t adjust ;
3734+ uint32_t adjust ;
37353735 u_int new_rwin ;
37363736 int r ;
37373737
@@ -3757,7 +3757,7 @@ channel_input_window_adjust(int type, u_int32_t seq, struct ssh *ssh)
37573757}
37583758
37593759int
3760- channel_input_status_confirm (int type , u_int32_t seq , struct ssh * ssh )
3760+ channel_input_status_confirm (int type , uint32_t seq , struct ssh * ssh )
37613761{
37623762 int id = channel_parse_id (ssh , __func__ , "status confirm" );
37633763 Channel * c ;
0 commit comments