1. 19 May, 2006 1 commit
  2. 09 May, 2006 1 commit
  3. 27 Feb, 2006 1 commit
    • Niels Möller's avatar
      (handle_channel_success, handle_channel_failure): · ca7e6844
      Niels Möller authored
      Use the command_context associated with the request, if it's
      non-NULL.
      (format_channel_request_i): Deleted function.
      (channel_send_request): Changed arguments to include a want_reply
      flag and a struct command_context *.
      
      Rev: src/channel.c:1.125.2.22
      Rev: src/channel.h:1.77.2.17
      ca7e6844
  4. 23 Feb, 2006 1 commit
    • Niels Möller's avatar
      (format_open_confirmation, format_open_failure) · ccc6e1e6
      Niels Möller authored
      (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
      ccc6e1e6
  5. 14 Feb, 2006 1 commit
  6. 13 Feb, 2006 1 commit
  7. 09 Oct, 2005 1 commit
    • Niels Möller's avatar
      (channel_send_request) · a59ff181
      Niels Möller authored
      (channel_send_global_request): New functions.
      (format_channel_request, format_global_request): Deleted
      functions.
      
      Rev: src/channel.c:1.125.2.18
      a59ff181
  8. 07 Oct, 2005 1 commit
  9. 20 Sep, 2005 3 commits
  10. 19 Sep, 2005 1 commit
    • Niels Möller's avatar
      (do_exc_global_request_handler) · 360f0a01
      Niels Möller authored
      (make_global_request_exception_handler, handle_global_request)
      (do_exc_channel_request_handler)
      (make_channel_request_exception_handler, handle_channel_request)
      (do_exc_channel_open_handler, make_exc_channel_open_handler)
      (handle_channel_open, handle_channel_failure): Adapted to new
      simpler exception abstraction.
      
      Rev: src/channel.c:1.125.2.13
      360f0a01
  11. 18 Sep, 2005 1 commit
  12. 16 Sep, 2005 3 commits
  13. 15 Sep, 2005 1 commit
    • Niels Möller's avatar
      * src/channel.c (alloc_channel): Use lsh_space_realloc. · beea720d
      Niels Möller authored
      (send_global_request_responses): Deleted q argument. Updated callers.
      (send_channel_request_responses): Likewise.
      (parse_channel_request): Deleted function. Merged in
      handle_channel_request.
      (parse_channel_open): Deleted function. Merged in
      handle_channel_open.
      
      Rev: src/channel.c:1.125.2.8
      beea720d
  14. 14 Sep, 2005 2 commits
    • Niels Möller's avatar
      * src/channel.c (format_open_failure, format_channel_success) · 7956ad29
      Niels Möller authored
      (format_channel_failure): Made static.
      
      Rev: src/channel.c:1.125.2.7
      7956ad29
    • Niels Möller's avatar
      (PROTOCOL_ERROR): Redefine macro (kind of kludgy). · ed25b9f0
      Niels Möller authored
      (channel_pending_close, channel_finished): New functions, replacing the
      EXC_FINISH_PENDING and EXC_FINISH_CHANNEL exceptions.
      (format_global_failure, format_global_success)
      (format_open_confirmation, prepare_window_adjust): Made static.
      (class exc_finish_channel_handler): Deleted.
      (do_exc_finish_channel_handler, make_exc_finish_channel_handler):
      Deleted.
      (init_channel_table): Replaces make_channel_table. New arguments
      write and kill.
      (kill_channels): New function.
      (use_channel): Removed argument local_channel_number.
      (register_channel): Don't set up any exception handler. Initialize
      channel->local_channel_number.
      (lookup_channel, lookup_channel_reserved): Added asserts.
      (channel_adjust_rec_window): New function. Replaces
      adjust_rec_window.
      (channel_maybe_close): New function.
      (handle_channel_eof, channel_eof): Use channel_maybe_close.
      (handle_channel_close, handle_open_failure, channel_close): Use
      channel_finished.
      (channel_transmit_data, channel_transmit_extended): Send the data,
      rather than returning a formatted packet.
      
      Rev: src/channel.c:1.125.2.6
      ed25b9f0
  15. 06 Sep, 2005 2 commits
  16. 18 Feb, 2005 1 commit
  17. 17 Feb, 2005 1 commit
  18. 16 Feb, 2005 1 commit
    • Niels Möller's avatar
      Purged dependence on ssh_connection from channel.c. Updated all users. · f5aa89a8
      Niels Möller authored
      Rev: src/channel.c:1.125.2.1
      Rev: src/channel.h:1.77.2.1
      Rev: src/channel_commands.c:1.30.2.1
      Rev: src/channel_commands.h:1.21.2.1
      Rev: src/client.c:1.166.2.1
      Rev: src/client_pty.c:1.27.2.1
      Rev: src/client_x11.c:1.26.2.1
      Rev: src/gateway_channel.c:1.18.2.1
      Rev: src/gateway_commands.c:1.24.2.1
      Rev: src/lshd-userauth.c:1.1.2.5
      Rev: src/read_data.c:1.37.2.1
      Rev: src/server_session.c:1.103.2.1
      Rev: src/server_x11.c:1.21.2.1
      Rev: src/tcpforward.c:1.69.2.1
      Rev: src/tcpforward_commands.c:1.47.2.1
      f5aa89a8
  19. 27 Feb, 2004 1 commit
  20. 08 Feb, 2004 1 commit
    • Niels Möller's avatar
      (window_adjust_handler): Deleted redundant assert. · 0a4932a4
      Niels Möller authored
      (do_channels_after_keyexchange): Renamed to do_channels_wakeup. No
      longer needs to reinstall the handler.
      (init_connection_service): Use connection_wakeup, not
      connection_after_keyexchange.
      
      Rev: src/channel.c:1.124
      Rev: src/channel.h:1.77
      0a4932a4
  21. 16 Nov, 2003 1 commit
  22. 30 Oct, 2003 1 commit
    • Niels Möller's avatar
      (C_WRITE): Deleted macro. Updated all callers · 1a61a8c7
      Niels Möller authored
      to use connection_send directly.
      
      Rev: src/channel.c:1.122
      Rev: src/channel_commands.c:1.30
      Rev: src/client.c:1.155
      Rev: src/client_pty.c:1.27
      Rev: src/client_userauth.c:1.56
      Rev: src/connection.c:1.76
      Rev: src/connection.h:1.69
      Rev: src/gateway_channel.c:1.18
      Rev: src/proxy.c:1.18
      Rev: src/proxy_userauth.c:1.15
      Rev: src/server.c:1.75
      Rev: src/server_session.c:1.101
      Rev: src/server_userauth.c:1.42
      1a61a8c7
  23. 22 Oct, 2003 1 commit
  24. 27 Sep, 2003 1 commit
  25. 26 Sep, 2003 1 commit
  26. 25 Sep, 2003 1 commit
  27. 19 Sep, 2003 1 commit
  28. 15 Sep, 2003 1 commit
  29. 16 Feb, 2003 1 commit
    • Niels Möller's avatar
      General cleanup. Use types uint32_t and friends instead of · 10f16aeb
      Niels Möller authored
      UINT32. Include files in the order config.h, C headers, system
      headers, lsh headers. Deleted RCS id stings. Affects most files.
      
      Rev: src/abstract_compress.c:1.5
      Rev: src/abstract_compress.h:1.6
      Rev: src/abstract_crypto.c:1.23
      Rev: src/abstract_crypto.h:1.42
      Rev: src/abstract_io.c:1.4
      Rev: src/abstract_io.h:1.35
      Rev: src/adns.c:1.4
      Rev: src/algorithms.c:1.34
      Rev: src/algorithms.h:1.10
      Rev: src/alist.c:1.22
      Rev: src/alist.h:1.18
      Rev: src/atoms.c:1.13
      Rev: src/atoms.h:1.8
      Rev: src/bignum.c:1.23
      Rev: src/bignum.h:1.21
      Rev: src/channel.c:1.115
      Rev: src/channel.h:1.73
      Rev: src/channel_commands.c:1.27
      Rev: src/channel_commands.h:1.21
      Rev: src/channel_forward.c:1.12
      Rev: src/channel_forward.h:1.6
      Rev: src/charset.c:1.9
      Rev: src/charset.h:1.5
      Rev: src/client.c:1.147
      Rev: src/client.h:1.52
      Rev: src/client_escape.c:1.7
      Rev: src/client_keyexchange.c:1.61
      Rev: src/client_keyexchange.h:1.18
      Rev: src/client_pty.c:1.24
      Rev: src/client_session.c:1.20
      Rev: src/client_userauth.c:1.53
      Rev: src/client_x11.c:1.22
      Rev: src/combinators.c:1.18
      Rev: src/command.c:1.49
      Rev: src/command.h:1.62
      Rev: src/compress.c:1.9
      Rev: src/compress.h:1.4
      Rev: src/connection.c:1.74
      Rev: src/connection.h:1.67
      Rev: src/connection_commands.c:1.42
      Rev: src/connection_commands.h:1.19
      Rev: src/crypto.c:1.34
      Rev: src/crypto.h:1.32
      Rev: src/daemon.c:1.10
      Rev: src/daemon.h:1.4
      Rev: src/debug.c:1.37
      Rev: src/debug.h:1.17
      Rev: src/dh_exchange.c:1.15
      Rev: src/dsa.c:1.38
      Rev: src/dsa_keygen.c:1.25
      Rev: src/encrypt.c:1.25
      Rev: src/encrypt.h:1.11
      Rev: src/exception.c:1.18
      Rev: src/exception.h:1.28
      Rev: src/format.c:1.52
      Rev: src/format.h:1.40
      Rev: src/gateway.c:1.8
      Rev: src/gateway.h:1.2
      Rev: src/gateway_channel.c:1.15
      Rev: src/gateway_channel.h:1.6
      Rev: src/gateway_commands.c:1.19
      Rev: src/gateway_commands.h:1.5
      Rev: src/gc.c:1.31
      Rev: src/gc.h:1.12
      Rev: src/handshake.c:1.16
      Rev: src/handshake.h:1.6
      Rev: src/interact.c:1.6
      Rev: src/interact.h:1.10
      Rev: src/io.c:1.182
      Rev: src/io.h:1.99
      Rev: src/io_commands.c:1.60
      Rev: src/io_commands.h:1.30
      Rev: src/jpoll.h:1.4
      Rev: src/keyexchange.c:1.89
      Rev: src/keyexchange.h:1.57
      Rev: src/list.c:1.9
      Rev: src/list.h:1.10
      Rev: src/lookup_verifier.c:1.3
      Rev: src/lookup_verifier.h:1.8
      Rev: src/lsh-decode-key.c:1.20
      Rev: src/lsh-execuv.c:1.5
      Rev: src/lsh-export-key.c:1.17
      Rev: src/lsh-keygen.c:1.16
      Rev: src/lsh-krb-checkpw.c:1.3
      Rev: src/lsh-make-seed.c:1.11
      Rev: src/lsh-pam-checkpw.c:1.6
      Rev: src/lsh-writekey.c:1.30
      Rev: src/lsh.c:1.178
      Rev: src/lsh.h:1.28
      Rev: src/lsh_argp.h:1.2
      Rev: src/lsh_proxy.c:1.35
      Rev: src/lsh_types.h:1.45
      Rev: src/lshd.c:1.149
      Rev: src/lshg.c:1.19
      Rev: src/memxor.c:1.2
      Rev: src/memxor.h:1.2
      Rev: src/pad.c:1.26
      Rev: src/pad.h:1.12
      Rev: src/parse.c:1.37
      Rev: src/parse.h:1.27
      Rev: src/parse_config.c:1.4
      Rev: src/parse_config.h:1.3
      Rev: src/parse_macros.h:1.4
      Rev: src/pkcs5.c:1.7
      Rev: src/proxy.c:1.16
      Rev: src/proxy.h:1.7
      Rev: src/proxy_agentforward.c:1.5
      Rev: src/proxy_agentforward.h:1.2
      Rev: src/proxy_session.c:1.10
      Rev: src/proxy_session.h:1.5
      Rev: src/proxy_tcpforward.c:1.7
      Rev: src/proxy_tcpforward.h:1.2
      Rev: src/proxy_userauth.c:1.13
      Rev: src/proxy_userauth.h:1.3
      Rev: src/proxy_x11forward.c:1.6
      Rev: src/proxy_x11forward.h:1.2
      Rev: src/publickey_crypto.c:1.45
      Rev: src/publickey_crypto.h:1.48
      Rev: src/queue.c:1.11
      Rev: src/queue.h:1.13
      Rev: src/randomness.c:1.28
      Rev: src/randomness.h:1.16
      Rev: src/read_data.c:1.36
      Rev: src/read_data.h:1.16
      Rev: src/read_file.c:1.5
      Rev: src/read_file.h:1.2
      Rev: src/read_line.c:1.31
      Rev: src/read_line.h:1.17
      Rev: src/read_packet.c:1.53
      Rev: src/read_packet.h:1.11
      Rev: src/reaper.c:1.25
      Rev: src/reaper.h:1.12
      Rev: src/resource.c:1.26
      Rev: src/resource.h:1.15
      Rev: src/rsa.c:1.27
      Rev: src/rsa_keygen.c:1.15
      Rev: src/server.c:1.72
      Rev: src/server.h:1.21
      Rev: src/server_authorization.c:1.20
      Rev: src/server_authorization.h:1.6
      Rev: src/server_keyexchange.c:1.54
      Rev: src/server_keyexchange.h:1.12
      Rev: src/server_password.c:1.34
      Rev: src/server_pty.c:1.25
      Rev: src/server_pty.h:1.14
      Rev: src/server_publickey.c:1.23
      Rev: src/server_session.c:1.99
      Rev: src/server_session.h:1.20
      Rev: src/server_userauth.c:1.38
      Rev: src/server_userauth.h:1.21
      Rev: src/server_x11.c:1.17
      Rev: src/server_x11.h:1.7
      Rev: src/sexp.c:1.47
      Rev: src/sexp.h:1.39
      Rev: src/spki.c:1.48
      Rev: src/spki.h:1.29
      Rev: src/srp-gen.c:1.17
      Rev: src/srp.h:1.7
      Rev: src/srp_exchange.c:1.18
      Rev: src/ssh1_fallback.c:1.14
      Rev: src/ssh1_fallback.h:1.6
      Rev: src/string_buffer.c:1.10
      Rev: src/string_buffer.h:1.5
      Rev: src/suspend.c:1.3
      Rev: src/suspend.h:1.3
      Rev: src/tcpforward.c:1.65
      Rev: src/tcpforward.h:1.19
      Rev: src/tcpforward_commands.c:1.44
      Rev: src/tcpforward_commands.h:1.7
      Rev: src/translate_signal.c:1.5
      Rev: src/translate_signal.h:1.3
      Rev: src/tty.c:1.17
      Rev: src/tty.h:1.13
      Rev: src/unix_interact.c:1.17
      Rev: src/unix_process.c:1.12
      Rev: src/unix_random.c:1.13
      Rev: src/unix_user.c:1.58
      Rev: src/unpad.c:1.21
      Rev: src/unpad.h:1.12
      Rev: src/userauth.h:1.37
      Rev: src/version.h:1.9
      Rev: src/werror.c:1.68
      Rev: src/werror.h:1.32
      Rev: src/write_buffer.c:1.27
      Rev: src/write_buffer.h:1.24
      Rev: src/xalloc.c:1.32
      Rev: src/xalloc.h:1.28
      Rev: src/xauth.c:1.10
      Rev: src/xauth.h:1.3
      Rev: src/zlib.c:1.35
      10f16aeb
  30. 27 Aug, 2002 1 commit
  31. 27 Jun, 2002 1 commit
  32. 26 Jun, 2002 1 commit
  33. 06 May, 2002 1 commit
    • Niels Möller's avatar
      (check_rec_max_packet): New function, that adjusts · dde28637
      Niels Möller authored
      our advertised rec_window_size so that we won't exceed the
      connection's packet size limit.
      (format_open_confirmation): Call check_rec_max_packet.
      (format_channel_open_s): Likewise.
      (format_channel_open): Likewise.
      
      Rev: src/channel.c:1.111
      dde28637
  34. 02 May, 2002 1 commit
    • Niels Möller's avatar
      * src/channel.c (parse_channel_open): Don't subtract · 396431c7
      Niels Möller authored
      SSH_MAX_PACKET_FUZZ here, it's handled in read_data.c.
      * src/server_session.c (make_server_session): Likewise.
      * src/client_session.c (make_client_session_channel): Likewise.
      * src/channel_forward.c (init_channel_forward): Likewise.
      
      Rev: src/channel.c:1.110
      Rev: src/channel_forward.c:1.7
      Rev: src/client_session.c:1.18
      Rev: src/server_session.c:1.83
      396431c7