Commit ccc6e1e6 authored by Niels Möller's avatar Niels Möller
Browse files

(format_open_confirmation, format_open_failure)

(format_channel_success, format_channel_failure)
(format_channel_window_adjust): New function.
(lookup_channel, lookup_channel_reserved): Deleted, replaced by
ssh_connection_lookup_channel.
(ssh_connection_register_channel): Renamed, was register_channel.
(send_window_adjust): New function, replacing
prepare_window_adjust.
(channel_adjust_rec_window, channel_start_receive): Use
send_window_adjust.
(handle_global_request): Use enum lsh_atom.
(handle_channel_request): Use request_methods, if non-NULL. Treat
a request on non-existing channel as a protocol error.
(do_channel_open_continue): Use ssh_connection_register_channel
and ssh_connection_activate_channel.
(do_exc_channel_open_handler): Updated for in_use / alloc_state
renaming.
(handle_channel_open): Don't use open_fallback handler. Use type
CHANNEL_ALLOC_RECEIVED_OPEN when allocating the channel number.
(handle_channel_close): Generate CHANNEL_EVENT_CLOSE.
(handle_open_confirm): Use ssh_connection_activate_channel. Don't
use channel_open_context.
(handle_open_failure): Use ssh_connection_lookup_channel with type
CHANNEL_ALLOC_SENT_OPEN. Generate CHANNEL_EVENT_DENY. Don't use
channel_open_context.
(handle_channel_success, handle_channel_failure): Use
request_methods if non-NULL. For now, don't invoke any
continuation or exception.
(init_channel): Updated initialization for added and removed
attributes.
(channel_transmit_data): Use format_channel_data.
(channel_transmit_extended): Use format_channel_extended_data.
(channel_open_new_v): Alloc channel with type
CHANNEL_ALLOC_SENT_OPEN. Call ssh_connection_register_channel.
(channel_open_new_type): Replaced type argument, an atom, with
length and const uint8_t *
(channel_send_request): Replaced the context argument with a flag
saying if the channel should be closed on failure.

Rev: src/channel.c:1.125.2.21
parent 73e67026
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment