1. 04 Aug, 2008 1 commit
    • Niels Möller's avatar
      (class lsh_options): Deleted handler attribute. Added · 7e5ee9bd
      Niels Möller authored
      detach flag.
      (make_options): Deleted handler argrment.
      (add_action): Changed argument type to client_connection_action.
      (make_client_session): Deleted handler argument in call to
      make_client_session_channel.
      (client_shell_session): Changed return type to
      client_connection_action. Use make_open_session_action.
      (client_subsystem_session): Likewise.
      (client_command_session): Likewise.
      (main_argp_parser): Changeed handling of -B, just set detach flag.
      (class lsh_default_handler): Deleted class.
      (do_lsh_default_handler): Deleted function.
      (make_lsh_default_handler): Deleted function.
      (main): Actions are now handled using the client_connection_action
      class, not as commands. Handle detach (-B flag) here.
      
      Rev: src/lsh.c:1.219
      7e5ee9bd
  2. 16 Jun, 2008 1 commit
  3. 14 Jun, 2008 1 commit
  4. 30 May, 2008 1 commit
  5. 26 May, 2008 1 commit
  6. 20 May, 2008 1 commit
    • Niels Möller's avatar
      (class lsh_options): Deleted tty attribute. · 3411e0ce
      Niels Möller authored
      (maybe_pty): Use interact_is_tty and client_request_pty.
      (main_argp_parser): Removed call to suspend_install_handler.
      Pass on --askpass option to lsh-transport.
      (main): Call unix_interact_init.
      
      Rev: src/lsh.c:1.214
      3411e0ce
  7. 15 May, 2008 1 commit
  8. 14 May, 2008 1 commit
    • Niels Möller's avatar
      (command gateway_accept): Moved to gateway.c. · dc6863a1
      Niels Möller authored
      (make_gateway_setup): Likewise.
      (maybe_x11): New function, replacing client_maybe_x11 in client.c.
      (client_shell_session, client_command_session): X11 handling.
      (main): Install CHANNEL_OPEN handler for x11.
      
      Rev: src/lsh.c:1.212
      dc6863a1
  9. 12 May, 2008 1 commit
    • Niels Möller's avatar
      (DEFAULT_ESCAPE_CHAR, DEFAULT_SOCKS_PORT): Moved from · cebfd9a8
      Niels Möller authored
      client.c.
      (class lsh_options): Don't inherit client_options, its contents is
      moved here.
      (make_options): Moved initialization code from init_client_options.
      (add_action, prepend_action): New functions, moved from client.c.
      (make_client_session): New function, moved from client.c.
      (maybe_pty): New function, moved from client.c.
      (client_shell_session): Rewritten to use client_session_action.
      (client_subsystem_session): Likewise.
      (client_command_session): Likewise.
      (main_options): Copied options from client.c.
      (main_argp_children): Inherit werror_argp, not client_argp.
      (parse_arg_unsigned, parse_forward_arg): Moved from client.c.
      (CASE_ARG, CASE_FLAG): Updated, not member is no longer in super class.
      (main_argp_parser): Moved option parsing from client.c.
      (fork_lsh_transport): Updated to changes in lsh_options.
      (main): Updated to changes in lsh_options. Modify inhibit_actions
      flag around call to env_parse.
      
      Rev: src/lsh.c:1.211
      cebfd9a8
  10. 04 May, 2008 1 commit
    • Niels Möller's avatar
      * src/lsh.c (class lsh_connection): Moved definition to client.h. · a91ae3e6
      Niels Möller authored
      Renamed to client_connection. Renamed all related function.
      Related i/o code moved to client.c.
      
      * src/client.h (class client_connection): Moved here from lsh.c.
      New attribute pending_random.
      (client_random_handler): New class.
      
      * src/client.c: Moved client_connection i/o code here.
      (handle_random_reply): New function.
      (client_random_request): New function.
      (client_gateway_random_request): New function.
      (oop_read_service): Use handle_random_reply.
      
      Rev: src/client.c:1.173
      Rev: src/client.h:1.64
      Rev: src/lsh.c:1.210
      a91ae3e6
  11. 03 Mar, 2008 1 commit
  12. 08 Jan, 2008 1 commit
  13. 07 Jan, 2008 1 commit
  14. 07 Sep, 2007 1 commit
    • Niels Möller's avatar
      (class lsh_connection): New attributes write_active · 3d1564a5
      Niels Möller authored
      and write_blocked.
      (CONNECTION_WRITE_BUFFER_STOP_THRESHOLD)
      (CONNECTION_WRITE_BUFFER_START_THRESHOLD): New constants.
      (stop_gateway, start_gateway): New functions.
      (oop_write_service): New function.
      (service_start_write, service_stop_write): New functions.
      (write_packet): Use service_start_write and service_stop_write.
      (oop_read_service): Added assert.
      (make_lsh_connection): Initialize write_active and write_blocked.
      (DEFINE_COMMAND2): Call gateway_start_read.
      (fork_lsh_transport): If messages are logged to file, dup that fd
      to stderr for the child process.
      
      Rev: src/lsh.c:1.206
      3d1564a5
  15. 03 May, 2007 1 commit
  16. 28 Feb, 2007 1 commit
    • Niels Möller's avatar
      (gateway_accept): Send hello message. · 8a5708e0
      Niels Möller authored
      (process_hello_message): New function.
      (main): Use process_hello_message. Implies that lsh -B will stay
      in the forground until after user authentication. Better error
      handling if connection fails.
      
      Rev: src/lsh.c:1.204
      8a5708e0
  17. 11 Jan, 2007 1 commit
  18. 27 Feb, 2006 1 commit
    • 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
  19. 23 Feb, 2006 1 commit
    • 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
  20. 14 Feb, 2006 1 commit
  21. 13 Feb, 2006 1 commit
    • Niels Möller's avatar
      (main_argp_children): werror_argp is no longer a · 6a6a5e0b
      Niels Möller authored
      direct child parser, it's a grand child via client_argp.
      (main_argp_parser): At ARGP_KEY_INIT, no longer set
      child_inputs[1]. At ARGP_KEY_END, deleted old transport-level
      setup which has been  moved to lsh-transport.c.
      (fork_lsh_transport): Examing the werror_config object to figure
      out which flags to pass on, instead of using the global variables
      quiet_flag and friends.
      
      Rev: src/lsh.c:1.200.2.19
      6a6a5e0b
  22. 09 Oct, 2005 2 commits
  23. 20 Sep, 2005 1 commit
  24. 19 Sep, 2005 1 commit
  25. 16 Sep, 2005 2 commits
  26. 15 Sep, 2005 2 commits
    • Niels Möller's avatar
      (write_packet): Don't use lsh_string_sequence_number. · 34372297
      Niels Möller authored
      (do_lsh_default_handler): Don't handle EXC_USERAUTH.
      
      Rev: src/lsh.c:1.200.2.12
      34372297
    • Niels Möller's avatar
      (class connection): Inherit channel_table, not resource. · b6a62d4f
      Niels Möller authored
      (kill_connection): Check the alive flag, and don't call exit here.
      (write_packet): Adapted to changes to ssh_write.c. Make sure the
      packet is deallocated.
      (do_write_packet): This is now a method of the channel_table class.
      (make_connection): Deleted exception handler argument.
      (fork_lsh_transport): Deleted exception handler argument. Don't
      call io_set_nonblocking here.
      
      Rev: src/lsh.c:1.200.2.11
      b6a62d4f
  27. 08 Sep, 2005 1 commit
  28. 07 Sep, 2005 1 commit
  29. 06 Sep, 2005 4 commits
  30. 30 Apr, 2005 1 commit
    • Niels Möller's avatar
      * src/crypto.h: Moved declarations here, from abstract_crypto.h · 2a602937
      Niels Möller authored
      and publickey_crypto.h.
      
      Rev: src/algorithms.c:1.36.2.2
      Rev: src/algorithms.h:1.12.2.2
      Rev: src/client_keyexchange.c:1.68.2.4
      Rev: src/client_userauth.c:1.61.2.1
      Rev: src/dh_exchange.c:1.20.2.5
      Rev: src/dsa.c:1.42.2.2
      Rev: src/keyexchange.c:1.94.2.4
      Rev: src/keyexchange.h:1.60.2.6
      Rev: src/lsh-decode-key.c:1.22.2.2
      Rev: src/lsh-decrypt-key.c:1.2.2.2
      Rev: src/lsh-keygen.c:1.20.2.2
      Rev: src/lsh-transport.c:1.1.2.8
      Rev: src/lsh-writekey.c:1.40.2.2
      Rev: src/lsh.c:1.200.2.4
      Rev: src/lsh_string.c:1.2.2.4
      Rev: src/lshd-userauth.c:1.1.2.9
      Rev: src/lshd.c:1.170.2.24
      Rev: src/lshd.h:1.1.2.9
      Rev: src/randomness.h:1.16.2.1
      Rev: src/read_packet.h:1.11.2.1
      Rev: src/rsa.c:1.29.2.2
      Rev: src/server_keyexchange.c:1.58.2.8
      Rev: src/spki.c:1.58.2.1
      Rev: src/spki.h:1.32.2.1
      Rev: src/srp_exchange.c:1.21.2.1
      Rev: src/transport.h:1.7.2.9
      2a602937
  31. 14 Apr, 2005 1 commit
  32. 16 Mar, 2005 1 commit
  33. 15 Feb, 2005 1 commit
    • Niels Möller's avatar
      * src/dsa.c (make_ssh_dss_verifier): Take length and pointer as · d0b72adf
      Niels Möller authored
      arguments, not a struct lsh_string *. Updated callers.
      * src/rsa.c (make_ssh_rsa_verifier): Likewise.
      
      Rev: src/dsa.c:1.42.2.1
      Rev: src/lsh.c:1.200.2.2
      Rev: src/lsh_proxy.c:1.37.2.1
      Rev: src/publickey_crypto.h:1.53.2.2
      Rev: src/rsa.c:1.29.2.1
      Rev: src/server_authorization.c:1.23.2.1
      d0b72adf
  34. 12 Feb, 2005 1 commit