summaryrefslogtreecommitdiff
path: root/src (follow)
Commit message (Expand)AuthorAgeFilesLines
* src/: Rename to `ssh/'.•••* src/: Rename to `ssh/'. * Makefile.am (SUBDIRS): Update. * configure.ac (LIBGUILE_SSH_INTERFACE): Update. * tests/Makefile.am: Update. (AM_SCM_LOG_FLAGS): Remove extra options. * README: Update. Artyom Poptsov2014-02-0144-4380/+0
* src/message.scm (message?): Export.•••* src/message.scm (message?): Export. * NEWS: Update. Artyom Poptsov2014-02-011-0/+1
* session-func.c (session_options): Remove duplicated options.•••* src/session-func.c (session_options): Remove duplicates that are existed for some options: `port-str', `log-verbosity-str', `add-identity'. (set_option): Likewise. * NEWS: Update. Artyom Poptsov2014-01-281-6/+0
* src/server-func.c (set_option): Use symbols for `log-verbosity'.•••* 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. Artyom Poptsov2014-01-284-15/+30
* session-func.c (set_option): Use symbols for `log-verbosity'.•••* 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. Artyom Poptsov2014-01-281-0/+27
* Merge branch 'channel-to-ptob'•••Conflicts: ChangeLog NEWS Artyom Poptsov2014-01-276-160/+250
|\
| * src/channel.scm (channel-get-stream): New procedure.•••* src/channel-func.c (guile_ssh_channel_get_stream): New procedure. * src/channel.scm (channel-get-stream): Export. Artyom Poptsov2014-01-272-0/+21
| * src/channel-type.c: Set default write buffer size to 1 byte.•••* src/channel-type.c: Set default write buffer size to 1 byte. (ptob_close): Get size of the buffers from ptab entry. (_ssh_channel_to_scm): Likewise. Artyom Poptsov2014-01-221-7/+10
| * src/channel-type.c (ptob_fill_input): Rename the argument.•••* src/channel-type.c (ptob_fill_input): Rename the argument. Update comments. Artyom Poptsov2014-01-221-7/+6
| * src/message-func.c: Fix a bug.•••* src/message-func.c (guile_ssh_message_channel_request_open_reply_accept): Fix a bug: pass a `ssh_channel' instance to `_ssh_channel_to_scm' procedure instead of pointer to the instance. Artyom Poptsov2014-01-191-1/+1
| * channel-type.c (ptob_input_waiting, ptob_fill_input): Improve.•••* src/channel-type.c (ptob_input_waiting): Improve error checking. (ptob_fill_input): Call `ssh_channel_poll' to update underlying SSH channel state and check whether we have data to read or not. Check if the channel is open. Artyom Poptsov2014-01-071-2/+11
| * channel-{func,type}.c, channel.scm: Update documentation.•••* src/channel-func.c (guile_ssh_channel_open_session): Update the documentation string. * src/channel-type.c: Update comments. * src/channel.scm: Likewise. Artyom Poptsov2014-01-073-10/+15
| * src/channel-type.c (ptob_fill_input): Return EOF on `SSH_AGAIN'.Artyom Poptsov2014-01-071-2/+2
| * src/channel-type.c: Remove debug traces.•••* src/channel-type.c (ptob_fill_input, ptob_flush, ptob_close, print_channel): Remove debug traces. Artyom Poptsov2014-01-071-10/+0
| * channel-type.c (_ssh_channel_to_scm): Fix ptob flags.•••* src/channel-type.c (_ssh_channel_to_scm): Don't set `SCM_BUFLINE' bit. Artyom Poptsov2014-01-071-4/+1
| * src/channel.scm (free-channel!): Remove.•••* src/channel-type.c (ptob_close): Free the underlying SSH channel. * src/channel.scm (free-channel!): Remove. * src/channel-func.c (guile_ssh_channel_free): Remove. Artyom Poptsov2014-01-063-11/+4
| * src/channel.scm: Add `channel-set-stream!'.•••* src/channel-func.c (guile_ssh_channel_set_stream_x): New procedure. * src/channel.scm: Export `channel-set-stream!'. Artyom Poptsov2014-01-062-0/+30
| * src/channel.scm: Remove unneeded procedures.Artyom Poptsov2014-01-061-2/+0
| * src/channel-type.c (_ssh_channel_to_scm): Improve.•••* src/channel-type.c (_ssh_channel_to_scm): Don't set `SCM_OPN' bit on the newly created channel. * src/channel-func.c (guile_ssh_channel_open_session): Set `SCM_OPN' bit on the channel. * src/message-func.c (guile_ssh_message_channel_request_open_reply_accept): Likewise. Artyom Poptsov2014-01-063-2/+7
| * src/channel-type.c (ptob_input_waiting): Change `FUNC_NAME' string.Artyom Poptsov2014-01-061-1/+1
| * src/channel-type.c (ptob_write): Improve.•••* src/channel-type.c (ptob_write): Improve error handling. Add a comment. Remove debug information. Artyom Poptsov2014-01-061-4/+9
| * src/channel-func.c: Remove unneeded procedures.•••* src/channel-func.c (guile_ssh_channel_pool) (guile_ssh_channel_close): Remove. * src/channel-func.h: Likewise. Artyom Poptsov2014-01-062-45/+0
| * src/channel-type.c (ptob_flush): Improve.•••* src/channel-type.c (ptob_flush): Improve. (ptob_close): Flush a port before closing its SSH channel. Artyom Poptsov2014-01-061-3/+20
| * src/channel-type.c (ptob_fill_input): Improve.Artyom Poptsov2014-01-051-4/+12
| * src/channel-type.c (ptob_input_waiting): Implement the procedure.•••* 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'. Artyom Poptsov2014-01-041-2/+9
| * src/channel-type.c (ptob_close): New procedure.•••* 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. Artyom Poptsov2014-01-041-11/+35
| * src/channel.scm: Update copyright notice.Artyom Poptsov2014-01-021-1/+1
| * Use Guile port API to implement Guile-SSH channels.•••* 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. Artyom Poptsov2014-01-026-105/+129
* | src/server-type.c (guile_ssh_server_close_x): Remove.Artyom Poptsov2014-01-261-11/+0
* | src/server.scm (server?): New procedure.•••* src/server-type.c (guile_ssh_is_server_p): New procedure. * src/server-type.h (guile_ssh_is_server_p): Export. * src/server.scm (server?): Export. * NEWS: Update. Artyom Poptsov2014-01-263-0/+9
* | src/session.scm (session?): New procedure.•••* src/session-type.c (guile_ssh_is_session_p): New procedure. * src/session-type.h (guile_ssh_is_session_p): Export. * src/session.scm (session?): Export. * NEWS: Update. Artyom Poptsov2014-01-263-0/+9
* | src/auth.h (guile_ssh_userauth_autopubkey_x): Export.Artyom Poptsov2014-01-231-1/+4
* | src/key-func.c (guile_ssh_private_key_from_file): Rollback.•••* src/key-func.c (guile_ssh_private_key_from_file): Rollback to the previous version of the procedure (which doesn't accept a passphrase as an argument) due to security considerations. The problem is that the passphrase provided by the user will float around in (possibly swapped) memory unless it will be collected by the GC. Thanks to Ludovic Courtès <ludo@gnu.org> for pointing this out. Instead the user must use either a SSH agent (with `userauth-autopubkey!' procedure) or privide the passphrase interactively (the user will be asked for the passphrase by the underlying libssh procedure if the provided key is encrypted). * src/auth.c (guile_ssh_userauth_autopubkey_x): Likewise. Artyom Poptsov2014-01-232-35/+18
* | key-func.c (guile_ssh_private_key_from_file): Improve.•••* src/key-func.c: Update copyright dates. (guile_ssh_private_key_from_file): Improve assertion of passphrase. Improve docstring and comments. Artyom Poptsov2014-01-181-5/+12
* | src/auth.c, src/auth.scm: Update copyright dates.Artyom Poptsov2014-01-182-2/+2
* | src/auth.scm (userauth-autopubkey!): New procedure.•••* src/auth.c (guile_ssh_userauth_autopubkey_x): New procedure. * src/auth.scm (userauth-autopubkey!): Export. Artyom Poptsov2014-01-182-0/+33
* | src/key-func.c: Add basic support of encrypted keys.•••* 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'. Artyom Poptsov2014-01-121-5/+12
|/
* * src/key-func.c (guile_ssh_public_key_to_string): Rename the argument.•••* src/key-func.c (guile_ssh_public_key_to_string): Rename the argument. Update comments. Artyom Poptsov2013-11-231-7/+4
* src/base64.c (bin_to_base64): Fix an infinite loop.•••* src/base64.c (bin_to_base64): Change type of the second argument to int to prevent an infinite loop due to wrapping of the size_t value. * src/base64.h: Update. * src/key-func.c (guile_ssh_public_key_to_string): Change type of `key_len'. * NEWS: Update. Artyom Poptsov2013-11-233-3/+3
* src/channel.scm (channel-set-pty-size!): New procedure.•••* src/channel-func.h: Add `guile_ssh_set_set_pty_size_x'. * src/channel-func.c (guile_ssh_channel_set_pty_size_x): New procedure. * src/channel.scm: Export `channel-set-pty-size!'. Artyom Poptsov2013-11-223-0/+27
* src/message-type.c: Improve printing of the smob.•••* src/message-type.c (print_message): New procedure. (init_message_type): Set the printer procedure for the smob. * NEWS: Update. Artyom Poptsov2013-11-211-0/+15
* src/session-type.c (PRINT_DEBUG): Remove the macro.Artyom Poptsov2013-11-201-3/+0
* channel.scm (channel-request-{pty,shell}): New procedures.•••* src/channel-func.c (guile_ssh_channel_request_pty) (guile_ssh_channel_request_shell): New procedures. * src/channel.scm: Export `channel-request-pty' and `channel-request-shell'. Artyom Poptsov2013-11-192-0/+40
* channel-func.c (guile_ssh_channel_read): Improve error handlng.•••* src/channel-func.c (guile_ssh_channel_read): Improve error handling. Add comments. Artyom Poptsov2013-11-181-8/+10
* src/channel-func.c: Fix a memory freeing error.•••* src/channel-func.c (guile_ssh_channel_read): Fix a memory freeing error: use `scm_from_locale_string' instead of `scm_take_locale_string', call `scm_gc_free' on allocated buffer. Artyom Poptsov2013-11-181-1/+2
* src/channel-type.c: Set the printer procedure for the smob.•••* src/channel-type.c (print_channel): New procedure. (init_channel_type): Set the printer procedure for the smob. * NEWS: Update. Artyom Poptsov2013-11-181-0/+13
* Makefile.am: Add `GUILE_CFLAGS' to compiling/snarfing flags.•••* src/Makefile.am (libguile_ssh_la_CPPFLAGS, snarfcppopts): Add `GUILE_CFLAGS'. Artyom Poptsov2013-11-161-1/+3
* Improve Automake files.•••* Makefile.am (ACLOCAL_AMFLAGS): Set variable. * src/Makefile.am (AM_CFLAGS): Remove. * INSTALL: Update. Artyom Poptsov2013-11-161-2/+0
* session-func.c (guile_ssh_session_set): Improve.•••* src/session-func.c (guile_ssh_session_set): Use `_scm_to_ssh_const'. Throw guile-ssh-error on error. Make return value undefined. * NEWS: Update. Artyom Poptsov2013-11-031-21/+14
* src/common.{c,h}: Add to the repository.•••Move common procedures for converting SCM values to SSH contants and vice versa to common.c file. * src/common.c, src/common.h: New files. * src/message-func.c (_ssh_const_to_scm): Remove. * src/server-func.c (guile_ssh_server_set_x): Use `_scm_to_ssh_const'. * src/Makefile.am (libguile_ssh_la_SOURCES): Add common.{c,h}. Artyom Poptsov2013-11-035-41/+100