| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
|
|
| |
* examples/sssh.scm (print-help): Rename to `print-help-and-exit'.
Call `exit'. All callers updated.
(print-version): Rename to `print-version-and-exit'. Call `exit'.
All callers updated.
(main): Update.
|
| |
|
|
|
|
| |
* examples/ssshd.scm (main): Add `--ssh-debug' option.
(print-help-and-exit): Likewise.
* NEWS: Update.
|
| |
|
|
|
|
| |
* examples/README: Update.
* examples/README.org: Add the symlink to `examples/README.org' to
help the GitHub recognize the org-mode markup.
|
| |
|
|
|
| |
* examples/ssshd.scm (close-ports): New procedure.
(main): Add `--detach' option.
|
| |
|
|
|
|
|
| |
* examples/ssshd.scm (main): Add command-line options: `--rsakey',
`--dsakey', `--help'.
(print-help-and-exit): New procedure.
* NEWS: Update.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* src/server-func.c (set_option) [SSH_BIND_OPTIONS_LOG_VERBOSITY]:
Use symbols to represent log levels instead of numbers. All
callers updated.
(set_sym_opt): New procedure.
* src/session-func.c: Move `log_verbosity' to `common.c' file.
* src/common.c, src/common.h: Update.
* examples/echo/server.scm (*default-log-verbosity*): Set to 'nolog.
* examples/ssshd.scm (*default-log-verbosity*): Likewise.
* NEWS: Update.
|
| |
|
|
|
|
|
|
|
|
| |
* src/session-func.c (set_option)[SSH_OPTIONS_LOG_VERBOSITY]: Use
symbols to represent log levels instead of numbers. All callers
updated.
(set_sym_opt): New procedure.
* examples/echo/client.scm (main): Set log verbosity to `nolog'.
* examples/sssh.scm (main): Update.
* NEWS: Update.
|
| |\
| |
| |
| |
| |
| | |
Conflicts:
ChangeLog
NEWS
|
| | |
| |
| |
| |
| | |
* examples/echo/client.scm (main): Print MD5 sum if the server is
not known.
|
| | | |
|
| | |
| |
| |
| |
| |
| | |
* examples/echo/server.scm (print-help): Update.
(main): Add `--port' option. Print RSA/DSA key pathes and current
bind port on the start.
|
| | |
| |
| |
| |
| |
| | |
* examples/echo/server.scm (read-all): Fix a bug: return the first
read line if there is no more data to read.
* examples/echo/client.scm (read-all): Likewise.
|
| | |
| |
| |
| |
| | |
* examples/echo/server.scm (print-help): New procedure.
(main): Handle command-line options.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* examples/ssshd.scm (handle-channel): Use `read-all' instead of
`channel-read'. Update.
(handle-request-exec): Use `display' instead of `channel-write'.
(shell-loop): Use `read-all' instead of `channel-read' and
`channel-poll'. Use `display' instead of `channel-write'.
(main): Close a channel before disconnecting the session.
* examples/sssh.scm (read-all): New procedure.
(main): Use `read-all' instead of `read-line'. Use `char-ready?'
instead of `channel-poll'.
|
| | |
| |
| |
| |
| | |
* examples/echo/client.scm: Update comments.
* examples/echo/server.scm: Likewise.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
* examples/echo/server.scm (read-all): New procedure.
(main): Update. Catch exceptions. Use `write-line' instead of
`display'.
* examples/echo/client.scm (read-all): New procedure.
(main): Update. Use `char-ready?' instead of `channel-poll'. Use
`write-line' instead of `display'.
|
| | |
| |
| |
| |
| |
| |
| |
| | |
* src/channel-type.c (ptob_input_waiting): Call `ssh_channel_poll'.
(init_channel_type): Register callback with
`scm_set_port_input_waiting' procedure.
* examples/echo/server.scm (main): Use `char-ready?' predicate
instead of the custom procedure `channel-poll'.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* src/channel-type.c (ptob_close): New procedure.
(print_channel): Don't try to get state of a channel if its port
is closed because it leads to segfaults. Closed port means closed
channel.
(init_channel_type): Register `ptob_close' with
`scm_set_port_close'.
* examples/echo/client.scm (main): Call `close' on a channel.
* examples/echo/server.scm (main): Likewise.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* src/channel-func.c (guile_ssh_channel_read)
(guile_ssh_channel_write): Remove.
* src/channel-func.h (guile_ssh_channel_read): Remove.
* src/channel-type.c (ptob_fill_input, ptob_write, ptob_flush)
(ptob_input_waiting, _ssh_channel_to_scm): New procedures.
(guile_ssh_make_channel): Use `_ssh_channel_to_scm'.
(_scm_to_ssh_channel): Use `SCM_STREAM' macro.
(init_channel_type): Register Guile port callbacks.
* src/channel-type.h (_ssh_channel_to_scm): Export.
* src/channel.scm (channel-read, channel-write): Remove.
* src/message-func.c
(guile_ssh_message_channel_request_open_reply_accept): Use
`_ssh_channel_to_scm'.
* examples/echo: Add to the repository.
* examples/Makefile.am: Add echo server/client example.
* examples/README: Update.
* examples/sssh.scm: Update.
* README: Update.
|
| | |
| |
| |
| |
| | |
* examples/sssh.scm (main): Use `userauth-autopubkey!' for
authentication.
|
| |/
|
|
|
|
| |
* examples/sssh.scm (main): Ask the user for a passphrase.
* src/key-func.c (guile_ssh_private_key_from_file): Change
argument list: add optional argument `passphrase'.
|
| |
|
|
|
| |
* examples/ssshd.scm (main): Print path to a key and the port number
on the start.
|
| |
|
|
|
|
| |
* examples/ssshd.scm (handle-req-channel): Handle
`channel-request-env'.
(main): Improve handling of `request-channel'.
|
| | |
|
| |
|
|
|
|
| |
* examples/Makefile.am (dist_examples_DATA): Add missed
`ssshd.scm'.
(AM_CFLAGS): Remove.
|
| |
|
|
|
| |
* examples/sssh.scm (main): Separate libssh debug and the program
debug mode. Print SSH channels.
|
| |
|
|
|
|
| |
* src/channel-type.c (print_channel): New procedure.
(init_channel_type): Set the printer procedure for the smob.
* NEWS: Update.
|
| |
|
|
|
|
| |
* src/message.scm (message-reply-success): New procedure.
* examples/ssshd.scm (handle-req-auth, handle-req-channel, main):
Use `message-reply-success'.
|
| | |
|
| |
|
|
|
|
| |
* src/message.scm (auth-req:pubkey-state): New procedure.
* src/message-func.c (get_auth_req): Store public key state in the
vector.
|
| |
|
|
|
| |
* examples/ssshd.scm: Add to the repository.
* examples/README: Update.
|
|
|
* Makefile.am (SUBDIRS): Add examples/
* configure.ac: Add examples/Makefile
* examples/: Add to the repository.
|