1. 27 Feb, 2006 29 commits
    • Niels Möller's avatar
      Cosmetic changes. · a77d39cf
      Niels Möller authored
      Rev: src/format.h:1.45.2.5
      a77d39cf
    • Niels Möller's avatar
      (ssh_format): Fixed bug for the case DEBUG_ALLOC && !__GNUC__. · 1bd2acfe
      Niels Möller authored
      (write_decimal_length): Deleted function.
      (format_decimal): Made static.
      (format_string): New function, for the common parts of
      ssh_vformat_write. Includes the code from...
      (format_hex_string): Deleted function.
      (ssh_vformat_write): Deleted the feature of including a sexp-style
      decimal length, "3:foo". Unified handling of %s, %S and %z, using
      the new function format_string.
      
      Rev: src/format.c:1.54.2.6
      1bd2acfe
    • Niels Möller's avatar
      (make_exception_handler) · 82e3c016
      Niels Möller authored
      (make_report_exception_info): Deleted.
      (class report_exception_handler): Deleted.
      (do_report_exception_handler, make_report_exception_handler):
      Deleted.
      
      Rev: src/exception.c:1.18.2.5
      82e3c016
    • Niels Möller's avatar
      (CONTINUATION_USED_P): Deleted. · 451597f7
      Niels Möller authored
      (class catch_report_collect): Deleted.
      (STATIC_CATCH_REPORT): Deleted.
      (PROGN, PROTECT): Deleted.
      
      Rev: src/command.h:1.63.2.3
      451597f7
    • Niels Möller's avatar
      (class parallell_progn): Deleted. · d2eda82e
      Niels Möller authored
      (do_parallell_progn, make_parallell_progn)
      (progn_command): Deleted.
      (class catch_handler_info): Deleted.
      (make_catch_handler_info): Deleted.
      (class catch_handler): Deleted.
      (do_catch_handler, make_catch_handler): Deleted.
      (class catch_apply): Deleted.
      (do_catch_apply, make_catch_apply): Deleted.
      (class catch_report_apply): Deleted.
      (do_catch_report_apply, make_catch_report_apply)
      (do_catch_report_collect): Deleted.
      (class protect_handler): Deleted.
      (do_exc_protect_handler, make_protect_exception_handler)
      (protect_command): Deleted.
      
      Rev: src/command.c:1.50.2.4
      d2eda82e
    • Niels Möller's avatar
      Deleted old code to handle utmp and wtmp. · a9bb16e3
      Niels Möller authored
      That work is now delegated to a helper process, which can run with
      sufficient privileges.
      (make_unix_process): Made static.
      (send_helper_request): New function.
      (class logout_notice): New attributes helper_fd and helper_ref.
      (do_logout_notice): Send a PTY_REQUEST_LOGOUT to the helper
      process.
      (exec_shell): Made static.
      (spawn_error): New arguments helper_fd and helper_ref. Send a
      PTY_REQUEST_DESTROY to the helper process.
      (make_logout_notice): New arguments helper_fd and helper_ref.
      (spawn_parent): Pass helper_fd and helper_ref to
      make_logout_notice.
      (spawn_child): New arguments helper_fd and helper_ref. Send a
      PTY_REQUEST_LOGIN to the helper process.
      (spawn_shell): New arguments helper_fd. Send a PTY_REQUEST_CREATE
      to the helper process. Pass on helper_Fd and helper_ref to help
      functions.
      
      Rev: src/unix_process.c:1.16.2.5
      a9bb16e3
    • Niels Möller's avatar
      (class server_session): New attribute helper_fd. · abbf35d1
      Niels Möller authored
      (make_server_session): Made static. New argument helper_fd.
      (class open_session): New attribute helper_fd.
      (do_open_session): Pass helper_fd to make_server_session.
      (make_open_session): New argument helper_fd.
      (do_exit_shell): Updated calls of channel_send_request. Cosmetic
      change to verbose message.
      (make_pty): Dup the master fd for both stdin and stdout, and leave
      the fd in the pty_info object intact.
      (spawn_process): Pass helper_fd to spawn_shell. If we're using a
      pty, set ignored_error = EIO on the read state correspondign to
      stdout. If we don't have a separate stderr channel, set
      channel->sources to 1, not 2.
      
      Rev: src/server_session.c:1.103.2.16
      Rev: src/server_session.h:1.20.2.2
      abbf35d1
    • Niels Möller's avatar
      Deleted file. · b9efe0bd
      Niels Möller authored
      Rev: src/lshg.c:1.27.2.4(DEAD)
      b9efe0bd
    • Niels Möller's avatar
      New testcase, using a pty request. · a4897b52
      Niels Möller authored
      Rev: src/testsuite/lsh-10-test:1.1.2.1
      a4897b52
    • Niels Möller's avatar
      Cosmetic change to werror message. · c6b4885e
      Niels Möller authored
      Rev: src/srp-gen.c:1.24.2.5
      c6b4885e
    • Niels Möller's avatar
      Comment change. · e7dea68a
      Niels Möller authored
      Rev: src/server.c:1.79.2.5
      e7dea68a
    • Niels Möller's avatar
      Deleted prototypes for make_unix_process and exec_shell, and updated · 0733fc2a
      Niels Möller authored
      prototype for spawn_shell to include helper_fd.
      
      Rev: src/lsh_process.h:1.1.2.3
      0733fc2a
    • Niels Möller's avatar
      (struct catch_report_collect): Deleted forward declaration. · d3de2e51
      Niels Möller authored
      Rev: src/lsh.h:1.33.2.4
      d3de2e51
    • Niels Möller's avatar
      (do_lsh_default_handler): Don't treat · 00d555bb
      Niels Möller authored
      EXC_CHANNEL_REQUEST as an error.
      (transport_exit_callback): Fixed format strings.
      (fork_lsh_transport): Deleted if:ed out code.
      
      Rev: src/lsh.c:1.200.2.22
      00d555bb
    • Niels Möller's avatar
      (lsh_decode_key): Cosmetic changes to werror messages. · da577f13
      Niels Möller authored
      Rev: src/lsh-decode-key.c:1.22.2.6
      da577f13
    • Niels Möller's avatar
      Changed "_CONFIG_FILE" to "_CONF" in the names · 18b98140
      Niels Möller authored
      of environment variables.
      (FILE_LSHD_PTY_HELPER, ENV_LSHD_PTY_HELPER): New constants.
      (ENV_LSHD_UTMP, ENV_LSHD_WTMP): Likewise.
      
      Rev: src/environ.h.in:1.5.2.4
      18b98140
    • Niels Möller's avatar
      command_Cp: Deleted if:ed out trace call. · 4c1d34ae
      Niels Möller authored
      Rev: src/combinators.c:1.19.2.2
      4c1d34ae
    • Niels Möller's avatar
      * src/client.h (class client_session): New attribute with the · 1ed6fa85
      Niels Möller authored
      channel's resources. Needed for the pty support.
      * src/client_session.c (do_kill_client_session): Kill associated
      resources.
      (make_client_session_channel): Initialize resource list.
      
      Rev: src/client_session.c:1.21.2.10
      1ed6fa85
    • Niels Möller's avatar
      (class pty_request): Inherit command. · bad73c30
      Niels Möller authored
      (do_client_winch_handler): Use channel_send_request.
      (format_window_change): Deleted function.
      (do_pty_continuation): Use the session's resource list; a general
      channel no longer includes a resource list.
      (do_pty_request): New function, replacing do_format_pty_request.
      (do_format_pty_request): Deleted function.
      (make_pty_request): Update for changed inheritance.
      
      Rev: src/client_pty.c:1.27.2.4
      bad73c30
    • Niels Möller's avatar
      Deleted #if:ed out code. · e8254328
      Niels Möller authored
      Rev: src/client_escape.c:1.9.2.3
      e8254328
    • Niels Möller's avatar
      (class client_session): New attribute with the · 7c6a3a5c
      Niels Möller authored
      channel's resources. Needed for the pty support.
      
      Rev: src/client.h:1.61.2.5
      7c6a3a5c
    • Niels Möller's avatar
      Cosmetic changes to werror messages. · dc8c6bc5
      Niels Möller authored
      (request_shell, do_session_channel_request): Pass a NULL ctx to
      channel_send_request.
      (client_maybe_pty): Enabled pty allocation.
      
      Rev: src/client.c:1.166.2.21
      dc8c6bc5
    • Niels Möller's avatar
      * src/channel_io.c (init_channel_read_state): Initialize · d6f68ae3
      Niels Möller authored
      ignored_error.
      (channel_io_read): If ignored_error is non-zero, tread read errors
      with matching errno as EOF.
      (channel_io_write, channel_io_flush): Fixed werror format string.
      
      * src/channel_io.h (class channel_read_state): New attribute
      ignored_error.
      
      Rev: src/channel_io.c:1.1.2.7
      Rev: src/channel_io.h:1.1.2.4
      d6f68ae3
    • 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
    • Niels Möller's avatar
      Deleted lshg rules. · ab6e68e6
      Niels Möller authored
      (liblsh_a_SOURCES): Added client_pty.c.
      
      Rev: src/Makefile.am:1.28.2.35
      ab6e68e6
    • Niels Möller's avatar
      Updated. · 332350d9
      Niels Möller authored
      Rev: src/.dist_headers:1.14.2.2
      332350d9
    • Niels Möller's avatar
      Added client_pty.c.x, gateway.h.x gateway_channel.c.x. Removed · 796cd9b2
      Niels Möller authored
      client_session.c.x.
      
      Rev: src/.dist_classes:1.16.2.3
      796cd9b2
    • Niels Möller's avatar
      Rewritten. Uses the functions in pty-helper.c. Handle utmp and wtmp. · 5b0aba61
      Niels Möller authored
      Rev: src/lshd-pty-helper.c:1.1.2.2
      5b0aba61
    • Niels Möller's avatar
      * src/pty-helper.h: New file. · fff819a9
      Niels Möller authored
      * src/pty-helper.c: New file.
      
      Rev: src/pty-helper.c:1.1.2.1
      Rev: src/pty-helper.h:1.1.2.1
      fff819a9
  2. 23 Feb, 2006 11 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