summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* modules/ssh/channel.scm: Update module commentarywip-getters-deprecationArtyom V. Poptsov2016-12-071-1/+1
|
* message.scm (message-auth-methods-set!): New procedureArtyom V. Poptsov2016-11-276-22/+28
| | | | | | | | | | * modules/ssh/message.scm (message-auth-methods-set!): New procedure. (message-auth-set-methods!): Deprecate * libguile-ssh/message-func.c (guile_ssh_message_auth_set_methods_x): Rename to 'gssh_message_auth_methods_set_x'. * tests/client-server.scm, tests/server-client.scm: Update to use new procedures instead of deprecated ones. * doc/api-messages.texi, NEWS: Update.
* message.scm (message-reply-success): Use 'message-type'Artyom V. Poptsov2016-11-271-1/+1
| | | | | * modules/ssh/message.scm (message-reply-success): Use 'message-type' instead of deprecated procedure.
* message.scm (message-type, message-session): New proceduresArtyom V. Poptsov2016-11-268-25/+42
| | | | | | | | | | | * modules/ssh/message.scm (message-type, message-session): New procedures. (message-get-type, message-get-session): Deprecate. * libguile-ssh/message-func.c (guile_ssh_message_get_type): Rename to 'gssh_message_type'. (guile_ssh_message_get_session): Rename to 'gssh_message_session'. * examples/ssshd.scm.in: Use new procedures intstead of deprecated ones. * tests/common.scm: Likewise. * NEWS: Update.
* NEWS: UpdateArtyom V. Poptsov2016-11-261-0/+1
|
* channel.scm (channel-stream-set!): New procedureArtyom V. Poptsov2016-11-264-11/+30
| | | | | | | | | * modules/ssh/channel.scm (channel-stream-set!): New procedure. (channel-set-stream!): Deprecate. * libguile-ssh/channel-func.c (guile_ssh_channel_set_stream_x): Rename to 'gssh_channel_stream_set_x'. * doc/api-channels.texi: Update. * tests/client-server.scm ("channel-stream"): New TC.
* tests/{client-server,key}.scm: Don't use deprecated proceduresArtyom V. Poptsov2016-11-262-9/+9
| | | | | | | | | * tests/client-server.scm ("get-public-key-hash"): Rename to "public-key-hash". Don't use deprecated procedures. ("channel-get-session"): Rename to "channel-session". Don't use deprecated procedures. * tests/key.scm ("get-key-type"): Rename to "key-type". Don't use deprecated procedures.
* channel.scm (channel-get-stream, channel-get-session): DeprecateArtyom V. Poptsov2016-11-264-22/+38
| | | | | | | | | | * modules/ssh/channel.scm (channel-get-stream, channel-get-session): Deprecate. (channel-session, channel-stream): New procedures. * libguile-ssh/channel-func.c (guile_ssh_channel_get_stream): Rename to 'gssh_channel_stream'. (guile_ssh_channel_get_session): Rename to 'gssh_channel_session'. * doc/api-channels.texi, NEWS: Update.
* key.scm (get-key-type, get-public-key-hash): DeprecateArtyom V. Poptsov2016-11-267-22/+46
| | | | | | | | | | * modules/ssh/key.scm (get-key-type, get-public-key-hash): Deprecate. * libguile-ssh/key-func.c (guile_ssh_key_get_type): Rename to 'gssh_key_type'. (guile_ssh_get_public_key_hash): Rename to 'gssh_public_key_hash'. (print_key): Update. * doc/api-keys.texi: Update. * NEWS: Update. * tests/key.scm ("public-key-hash"): New TC.
* NEWS: Bump version to 0.10.2v0.10.2Artyom V. Poptsov2016-11-253-4/+6
| | | | | | * NEWS: Update. Bump version to 0.10.2. * configure.ac: Update. * build-aux/compile: Update.
* NEWS: UpdateArtyom V. Poptsov2016-11-241-1/+3
|
* sftp-file-type.c (ptob_close): Add missing 'return' statementArtyom V. Poptsov2016-11-201-1/+3
| | | | * libguile-ssh/sftp-file-type.c (ptob_close): Add missing 'return' statement.
* sftp-session-type.c (print_sftp_session): Add missing 'return' statementArtyom V. Poptsov2016-11-201-1/+2
| | | | | * libguile-ssh/sftp-session-type.c (print_sftp_session): Add missing 'return' statement.
* session-func.c (guile_ssh_session_get): Fix warningsArtyom V. Poptsov2016-11-061-2/+2
| | | | | * libguile-ssh/session-func.c (guile_ssh_session_get): Fix warnings: initialize variables with default values.
* channel-func.c (_ssh_result_to_symbol): Add assertion, fix warningArtyom V. Poptsov2016-11-061-0/+8
| | | | | | * libguile-ssh/channel-func.c (_ssh_result_to_symbol): Assert that the argument is one of the libssh valid return codes. Fix warning related to missed 'return' statement.
* channel-func.c (guile_ssh_channel_get_stream): Fix a warningArtyom V. Poptsov2016-11-061-0/+2
| | | | | * libguile-ssh/channel-func.c (guile_ssh_channel_get_stream): Fix a warning due to missed 'return' statement at the end of non-void procedure.
* build: Build with '-Wall'.Ludovic Courtès2016-11-062-0/+9
| | | | | | | * configure.ac: Set and substitute 'WARN_CFLAGS'. * libguile-ssh/Makefile.am (AM_CFLAGS): New variable. Signed-off-by: Artyom V. Poptsov <poptsov.artyom@gmail.com>
* libguile-ssh: Remove unused variables.Ludovic Courtès2016-11-064-6/+0
| | | | | | | | | | | | * libguile-ssh/auth.c (guile_ssh_userauth_public_key_x): Remove 'public_key'. * libguile-ssh/message-func.c (get_auth_req): Remove 'pkey_smob' and 'pkey_data'. * libguile-ssh/session-type.c (print_session): Remove 'smob_addr'. * libguile-ssh/sftp-file-type.c (print_sftp_file): Remove 'attr'. (ptob_flush): Remove 'fd'. Signed-off-by: Artyom V. Poptsov <poptsov.artyom@gmail.com>
* libguile-ssh/server-func.c: Add missing 'const'.Ludovic Courtès2016-11-061-4/+4
| | | | | | | | | | This is a followup to e490ba5226cedf22eb8f9166b5ac9fb5486c65f8. * libguile-ssh/server-func.c (set_sym_opt) (guile_ssh_server_set_x, guile_ssh_server_get): 'const'-qualify 'opt' and 'sd'. Signed-off-by: Artyom V. Poptsov <poptsov.artyom@gmail.com>
* channel.scm: Remove trailing bang from 'channel-send-eof'.Ludovic Courtès2016-11-064-10/+10
| | | | | | | | | | | | | | | | | This procedure merely does I/O without mutating its argument, so it does not deserve the trailing '!' (similar to Scheme's 'write', 'put-bytevector', etc. procedures). * libguile-ssh/channel-func.c (gssh_channel_send_eof_x): Rename to... (gssh_channel_send_eof): ... this. Change Scheme name to '%channel-send-eof'. Adjust caller. * modules/ssh/channel.scm (channel-send-eof!): Rename to... (channel-send-eof): ... this. * tests/client-server.scm ("channel-send-eof!"): Rename to... ("channel-send-eof"): ... this. Adjust accordingly. * doc/api-channels.texi (Channel Management): Adjust accordingly. Signed-off-by: Artyom V. Poptsov <poptsov.artyom@gmail.com>
* doc: Add procedure index.Ludovic Courtès2016-11-062-0/+6
| | | | | | | * doc/indices.texi (Procedure Index): New node. * doc/guile-ssh.texi: Add it to the menu. Signed-off-by: Artyom V. Poptsov <poptsov.artyom@gmail.com>
* build: Remove 'version.texi', which is generated.Ludovic Courtès2016-11-062-9/+1
| | | | | | * doc/version.texi: Remove. Signed-off-by: Artyom V. Poptsov <poptsov.artyom@gmail.com>
* AUTHORS: UpdateArtyom V. Poptsov2016-11-041-1/+7
|
* libguile-ssh/key-type.c: Improve locality and constness.Ludovic Courtès2016-11-042-6/+4
| | | | | | | | * libguile-ssh/key-type.c (key_types): Mark as 'static const'. (mark_key_smob, free_key_smob, equalp_key): Mark as 'static'. * libguile-ssh/key-type.h (key_types): Remove declaration. Signed-off-by: Artyom V. Poptsov <poptsov.artyom@gmail.com>
* libguile-ssh/common.h: 'const'-qualify pointers to 'symbol_mapping'.Ludovic Courtès2016-11-047-18/+18
| | | | | | | | | | | | | | | | | | | * libguile-ssh/common.h (_ssh_const_to_scm): Const-qualify 'types' parameter. (_scm_to_ssh_const): Likewise, and const-qualify return type. * libguile-ssh/common.c (_ssh_const_to_scm): (_scm_to_ssh_const): Adjust accordingly. * libguile-ssh/key-func.c (guile_ssh_string_to_public_key): Adjust accordingly. * libguile-ssh/key-type.c (_scm_to_ssh_key_type, guile_ssh_make_keypair): Likewise. * libguile-ssh/key-type.h (_scm_to_ssh_key_type): Likewise. * libguile-ssh/log.c (guile_ssh_write_log) (guile_ssh_set_log_verbosity_x): Likewise. * libguile-ssh/session-func.c (set_sym_opt): Likewise. (guile_ssh_session_set, guile_ssh_session_get): Likewise. Signed-off-by: Artyom V. Poptsov <poptsov.artyom@gmail.com>
* libguile-ssh/key-type.c: Add mapping for ed25519 keys.Ludovic Courtès2016-11-041-0/+1
| | | | | | | * libguile-ssh/key-type.c (key_types): Add entry for 'SSH_KEYTYPE_ED25519'. Signed-off-by: Artyom V. Poptsov <poptsov.artyom@gmail.com>
* channel.scm (channel-send-eof!): New procedureArtyom V. Poptsov2016-10-306-1/+117
| | | | | | | | * modules/ssh/channel.scm (channel-send-eof!): New procedure. * libguile-ssh/channel-func.c (gssh_channel_send_eof_x): New procedure. * doc/api-channels.texi: Add description of 'channel-send-eof!'. * tests/client-server.scm ("channel-send-eof!"): New TC. * doc/version.texi, NEWS: Update.
* NEWS: Bump version to 0.10.1v0.10.1Artyom V. Poptsov2016-10-093-7/+9
| | | | | * NEWS: Bump version to 0.10.1. * configure.ac, doc/version.texi: Update.
* AUTHORS: UpdateArtyom V. Poptsov2016-10-091-0/+4
|
* build: Change default 'guilesitedir' to PREFIX/share/guile/site/X.Y.Ludovic Courtès2016-10-091-3/+9
| | | | | | | | * configure.ac: Use 'm4_pattern_forbid' for 'GUILE_' macros. Use 'GUILE_PKG' instead of 'PKG_CHECK_MODULES' to find Guile. Change default value of 'guilesitedir'. Signed-off-by: Artyom V. Poptsov <poptsov.artyom@gmail.com>
* build: Update Guile's and Gettext's Autoconf macros.Ludovic Courtès2016-10-098-48/+1563
| | | | | | | | | | | * m4/guile.m4, m4/lib-link.m4, m4/lib-ld.m4, m4/lib-prefix.m4: Update from Guile 2.0.12 and Gettext 0.19.8. * build-aux/compile, build-aux/config.rpath: New files, imported from Gettext. * Makefile.am (EXTRA_DIST): Add them. * INSTALL: Update. Signed-off-by: Artyom V. Poptsov <poptsov.artyom@gmail.com>
* doc/guile-ssh.texi (Acknowledgments): UpdateArtyom V. Poptsov2016-10-091-0/+1
|
* .gitignore: Ignore '*.tar.gz.sig' filesArtyom V. Poptsov2016-10-091-0/+1
|
* .gitignore: Ignore '*.tar.gz'Artyom V. Poptsov2016-10-091-0/+2
|
* session-type.c (free_session): Improve a bitArtyom V. Poptsov2016-10-091-3/+3
| | | | * libguile-ssh/session-type.c (free_session): Use shorter argument names.
* libguile-ssh: Update some copyright datesArtyom V. Poptsov2016-10-093-3/+3
| | | | | * libguile-ssh/key-type.c, libguile-ssh/message-type.c, libguile-ssh/server-type.c: Update copyright dates.
* AUTHORS, THANKS: UpdateArtyom V. Poptsov2016-10-092-0/+5
|
* libguile-ssh: Bugfix: Fix SMOB freeing callbacksArtyom V. Poptsov2016-10-096-37/+19
| | | | | | | | | | | | | | | | | | The SMOB freeing callbacks would always fail to free any resources due to mistaken use of 'SCM_SMOB_PREDICATE' procedure -- the procedure doesn't work in these GC callbacks according to the documentation (see '(guile) Smobs') and always returns 'false' as the result when used in such context. The solution is to remove the check 'SCM_SMOB_PREDICATE' and just get the SMOB's data. Reported by: David Kastrup <dak@gnu.org> Reported by: Ludovic Courtès <ludo@gnu.org> * libguile-ssh/key-type.c, libguile-ssh/message-type.c, libguile-ssh/server-type.c, libguile-ssh/session-type.c, libguile-ssh/sftp-session-type.c: Bugfix: Fix SMOB freeing callbacks. * NEWS: Update.
* NEWS: Bump version to 0.10.0v0.10.0Artyom V. Poptsov2016-08-203-6/+6
| | | | | * NEWS: Bump version to 0.10.0. * configure.ac, doc/version.texi: Likewise.
* doc/guile-ssh.texi (Acknowledgments): UpdateArtyom V. Poptsov2016-08-202-2/+4
| | | | | * doc/guile-ssh.texi (Acknowledgments): Update. * doc/version.texi: Update.
* NEWS: UpdateArtyom V. Poptsov2016-08-191-1/+1
|
* NEWS: Fix typoArtyom V. Poptsov2016-08-191-1/+1
|
* README, NEWS, TODO: UpdateArtyom V. Poptsov2016-08-193-2/+8
|
* Merge branch 'wip-guile-2.0.12'Artyom V. Poptsov2016-08-199-9/+60
|\
| * tests/Makefile.am (CLEANFILES): Add 'key-*.log' filesArtyom V. Poptsov2016-08-191-0/+2
| |
| * tests/key.scm ("string->public-key, RSA, gc test"): New TCArtyom V. Poptsov2016-08-192-0/+20
| | | | | | | | | | * tests/key.scm ("string->public-key, RSA, gc test"): New TC. * tests/session.scm ("%make-session, gc test"): New TC.
| * libguile-ssh: Bugfix: Check if smobs are already freedArtyom V. Poptsov2016-08-194-0/+20
| | | | | | | | | | | | | | | | * libguile-ssh/message-type.c (free_message): Bugfix: Check if the smob is already freed, don't try to free it once more. * libguile-ssh/server-type.c (free_server): Likewise. * libguile-ssh/session-type.c (free_session): Likewise. * libguile-ssh/sftp-session-type.c (free_sftp_session): Likewise.
| * libguile-ssh/key-type.c (free_key_smob): Bugfix: Check smob typeArtyom V. Poptsov2016-08-193-9/+18
| | | | | | | | | | | | | | | | * libguile-ssh/key-type.c (free_key_smob): Bugfix: Check if the smob is already freed, don't try to free it once more. * tests/common.scm (test-begin-with-log): Set log verbosity to the highest level by default. * tests/key.scm: Perform test with logging.
* | TODO: UpdateArtyom V. Poptsov2016-08-171-0/+1
|/
* tests/tunnel.scm ("call-with-ssh-forward"): Use 'poll' procedureArtyom V. Poptsov2016-08-071-1/+3
|