1. 27 Feb, 2006 21 commits
  2. 23 Feb, 2006 19 commits
    • Niels Möller's avatar
      *** empty log message *** · 8821ce86
      Niels Möller authored
      Rev: ChangeLog:1.857.2.65
      8821ce86
    • Niels Möller's avatar
      (request_shell): Mark continuation and exception arguments as UNUSED. · b6ef8f6c
      Niels Möller authored
      Rev: src/client.c:1.166.2.20
      b6ef8f6c
    • Niels Möller's avatar
      *** empty log message *** · 9a0279a5
      Niels Möller authored
      Rev: ChangeLog:1.857.2.64
      9a0279a5
    • Niels Möller's avatar
      * src/testsuite/lshg-1-test: Use --start-gateway. Don't use · 248be86a
      Niels Möller authored
      need_lshg.
      * src/testsuite/lshg-cat-2-test: Likewise.
      * src/testsuite/lshg-cat-test: Likewise.
      * src/testsuite/lshg-tcpip-local-test: Likewise.
      
      Rev: src/testsuite/lshg-1-test:1.5.2.2
      Rev: src/testsuite/lshg-cat-2-test:1.5.2.3
      Rev: src/testsuite/lshg-cat-test:1.5.2.3
      Rev: src/testsuite/lshg-tcpip-local-test:1.5.2.2
      248be86a
    • Niels Möller's avatar
      * src/testsuite/rapid7-lshd-test: Less verbosity. · 0a6b4233
      Niels Möller authored
      * src/testsuite/rapid7-lsh-test: Likewise.
      
      Rev: src/testsuite/rapid7-lsh-test:1.5.2.1
      Rev: src/testsuite/rapid7-lshd-test:1.5.2.2
      0a6b4233
    • Niels Möller's avatar
      Use new gateway flags. Deleted function need_lshg. · fbb2c863
      Niels Möller authored
      Rev: src/testsuite/functions.sh:1.40.2.7
      fbb2c863
    • Niels Möller's avatar
      (class lsh_connection): Renamed, was connection. New · 3d1bce7f
      Niels Möller authored
      attribute gateway_connections.
      (oop_read_service): Fixed cut and paste errors in error messages.
      (make_lsh_connection): Initialize gateway_connections.
      (gateway_accept): New command.
      (expr make_gateway_setup): Moved from gateway_commands.c.
      (class lsh_options): New attributes, use_gateway, start_gateway,
      stop_gateway, and gateway.
      (make_options): Initialize gateway related attributes.
      (main_options): Use an enum to define option values. New options
      --use-gateway, --no-use-gateway, -G, --start-gateway,
      --stop-gateway.
      (main_argp_parser): Handle gateway related options.
      (fork_lsh_transport): Return a plain fd, not an object.
      (main): Start and stop gateway, as appropriate. Use a loop with
      object_queue_is_empty and object_queue_remove_head, instead of the
      FOR_OBJECT_QUEUE macro.
      
      Rev: src/lsh.c:1.200.2.21
      3d1bce7f
    • Niels Möller's avatar
      Much of the old implementation deleted. · 45a887b6
      Niels Möller authored
      (class gateway_channel): New class.
      (do_kill_gateway_channel): New function.
      (do_receive): Use channel_transmit_data and
      channel_transmit_extended, on the chained channel.
      (do_send_adjust): Use channel_adjust_rec_window.
      (do_gateway_channel_event): New function.
      (do_gateway_channel_request): New function.
      (do_gateway_channel_success): New function.
      (do_gateway_channel_failure): New function.
      (gateway_request_methods): New method struct.
      (make_gateway_pair): New function.
      (gateway_handle_channel_open): New function.
      (gateway_packet_handler): New function.
      
      Rev: src/gateway_channel.c:1.18.2.3
      45a887b6
    • Niels Möller's avatar
      (class gateway_connection): New class. · 5db1837d
      Niels Möller authored
      Rev: src/gateway.h:1.3.2.3
      5db1837d
    • Niels Möller's avatar
      (kill_gateway_connection): New function. · 0bcc37a8
      Niels Möller authored
      (gateway_write_packet): New function.
      (gateway_disconnect): New function.
      (oop_read_gateway): New function.
      (gateway_start_read): New function.
      (do_write_packet): New function.
      (do_disconnect): New function.
      (make_gateway_connection): New function.
      
      Rev: src/gateway.c:1.10.2.1
      0bcc37a8
    • Niels Möller's avatar
      (open_direct_tcpip_command): Don't setup any channel_open_context. · 959f8b37
      Niels Möller authored
      Rev: src/client_tcpforward.c:1.1.2.5
      959f8b37
    • Niels Möller's avatar
      (do_exit_status): Updated for const · 52721f03
      Niels Möller authored
      channel_request_info.
      (do_exit_signal): Updated for const channel_request_info. Use enum
      lsh_atom.
      (class session_open_command): New class, replacing command of the
      same name.
      (do_open_session_command): Don't setup any channel_open_context.
      (make_open_session_command): New function.
      (request_shell): Pass non-zero close_on_error to
      channel_send_request.
      (do_session_channel_request): Likewise.
      (client_options): Cosmetic changes.
      (expr make_start_session): Deleted.
      (client_shell_session, client_subsystem_session)
      (client_command_session): Use request queue in client_session
      object.
      (make_client_session): Changed return type to struct
      client_session *.
      
      Rev: src/client.c:1.166.2.19
      52721f03
    • Niels Möller's avatar
      (do_client_session_event): On · 0dafe1d7
      Niels Möller authored
      CHANNEL_EVENT_CONFIRM, send all queued channel requests. On
      CHANNEL_EVENT_DENY, raise an exception. On CHANNEL_EVENT_CLOSE, do
      nothing.
      
      Rev: src/client_session.c:1.21.2.9
      0dafe1d7
    • Niels Möller's avatar
      (class client_session): Moved definition here, from · d77d5834
      Niels Möller authored
      client_session.c.
      
      Rev: src/client.h:1.61.2.4
      d77d5834
    • Niels Möller's avatar
      (do_server_session_event): Handle and · ed73b3b0
      Niels Möller authored
      ignore CHANNEL_EVENT_CLOSE and CHANNEL_EVENT_DENY.
      (do_exit_shell): Updated call to channel_send_request.
      (shell_request_handler, exec_request_handler): Adapted to a const
      channel_request_info.
      (pty_request_handler): Likewise.
      
      Rev: src/server_session.c:1.103.2.15
      ed73b3b0
    • Niels Möller's avatar
      (open_forwarded_tcpip_command): Don't setup any channel_open_context. · 86329555
      Niels Möller authored
      Rev: src/server_tcpforward.c:1.1.2.5
      86329555
    • Niels Möller's avatar
      (class socks_channel): Replaces class · a6560459
      Niels Möller authored
      socks_connection, and inherits channel_forward.
      (class socks_continuation): Deleted.
      (do_socks_continuation, make_socks_continuation): Deleted.
      (class socks_exception_handler): Deleted.
      (do_exc_socks_handler, make_socks_exception_handler): Deleted.
      (do_socks_channel_event): New function, in particular handling
      CHANNEL_EVENT_CONFIRM and CHANNEL_EVENT_DENY.
      
      Rev: src/socks.c:1.5.2.5
      a6560459
    • Niels Möller's avatar
      (channel_forward_shutdown): Made · dc29b85e
      Niels Möller authored
      non-static.
      (channel_forward_start_read): New function.
      (init_channel_forward): Take event handler as argument.
      (forward_open_report, catch_channel_open): Deleted.
      
      Rev: src/channel_forward.h:1.8.2.2
      dc29b85e
    • Niels Möller's avatar
      (channel_forward_shutdown): Made · 592cb763
      Niels Möller authored
      non-static.
      (channel_forward_start_read): New function.
      (channel_forward_start_io): Use channel_forward_start_read.
      (do_channel_forward_event): Use channel_forward_start_read.
      Recognize CHANNEL_EVENT_DENY and CHANNEL_EVENT_CLOSE, and do
      nothing.
      (init_channel_forward): Take event handler as argument.
      (make_channel_forward): Pass do_channel_forward_event to
      init_channel_forward.
      (forward_open_report, catch_channel_open): Deleted.
      
      Rev: src/channel_forward.c:1.14.2.6
      592cb763