summaryrefslogtreecommitdiff
path: root/examples (follow)
Commit message (Expand)AuthorAgeFilesLines
* build: Allow VPATH builds.•••This fixes builds where $(builddir) != $(srcdir). * examples/Makefile.am (.in): Use $(MKDIR_P) to make the target's parent directories. * tests/common.scm (%topbuilddir): New variable. * tests/sssh-ssshd.scm (*ssshd-cmd*, *sssh-cmd*): Use it instead of %TOPDIR. Signed-off-by: Artyom V. Poptsov <poptsov.artyom@gmail.com> Ludovic Courtès2017-04-231-0/+1
* examples/Makefile.am: Update copyright datesArtyom V. Poptsov2016-08-071-1/+1
* examples/uptop.scm.in: Add to the repository•••* examples/uptop.scm.in: Add to the repository. * examples/Makefile.am (EXTRA_DIST, dist_examples_DATA): Update. * examples/README, examples/.gitignore: Update. Artyom V. Poptsov2016-08-074-2/+97
* examples/.gitignore: Ignore auto-generated filesArtyom V. Poptsov2015-12-241-0/+2
* examples/README: Update•••* examples/README: Fix description of 'rpc.scm' and 'ssshd.scm'. Artyom V. Poptsov2015-12-231-2/+4
* examples/README: UpdateArtyom V. Poptsov2015-12-231-5/+4
* examples/README: UpdateArtyom V. Poptsov2015-12-231-21/+23
* examples/README: UpdateArtyom V. Poptsov2015-12-231-23/+26
* examples/pg-tunnel.scm: Rename to 'pg-tunnel.scm.in'•••* examples/pg-tunnel.scm: Rename to 'pg-tunnel.scm.in', use substitution to set the path to Guile. * examples/Makefile.am (EXTRA_DIST): Add 'pg-tunnel.scm.in'. (dist_examples_DATA): Add 'pg-tunnel.scm'. * README: Update. Artyom V. Poptsov2015-12-202-4/+5
* examples/pg-tunnel.scm: Add to the repositoryArtyom V. Poptsov2015-12-201-0/+148
* Merge branch 'master' into wip-sftpArtyom V. Poptsov2015-11-011-5/+4
|\
| * examples/sssh.scm.in: Update copyright datesArtyom V. Poptsov2015-10-291-1/+1
| * examples/sssh.scm.in (handle-error): Simplify a bit•••* examples/sssh.scm.in (handle-error): Simplify a bit, update the docstring. Artyom V. Poptsov2015-10-291-3/+2
| * examples/sssh.scm.in: Fix repository URLArtyom V. Poptsov2015-10-291-1/+1
* | examples/sscp.scm.in (cp): Update•••* examples/sscp.scm.in (cp): Replace 'sftp-open-file' with 'sftp-open'. Artyom V. Poptsov2015-10-281-1/+1
* | examples/sscp.scm.in: Add to the repository•••* examples/sscp.scm.in: Add to the repository. * examples/Makefile.am: Update. Artyom V. Poptsov2015-10-282-3/+104
|/
* examples/README: UpdateArtyom V. Poptsov2015-07-311-2/+2
* examples/rpc/client.scm.in: CleanupArtyom V. Poptsov2015-07-311-1/+1
* examples/rpc/{client,server}.scm.in: Add to the repository•••* examples/rpc/client.scm.in, examples/rpc/server.scm.in: Add to the repository. * doc/api-channels.texi: Mention a path to the full RPC client example in the description of 'call-with-ssh-forward'. * examples/Makefile.am: Add 'rpc/client.scm.in', rpc/server.scm.in. * examples/.gitignore: Ignore 'rpc/client.scm', 'rpc/server.scm'. * examples/README: Update. Artyom V. Poptsov2015-07-315-2/+188
* examples/.gitignore: Ignore 'rrepl.scm'Artyom V. Poptsov2015-07-281-0/+1
* examples/rrepl.scm.in: Remove unused moduleArtyom V. Poptsov2015-07-281-2/+1
* examples/rrepl.scm.in (print-help-and-exit): UpdateArtyom V. Poptsov2015-07-281-2/+1
* examples/rrepl.scm.in: Update description•••* examples/rrepl.scm.in: Update description. (print-help-and-exit): Update. Artyom V. Poptsov2015-07-281-3/+4
* examples/rrepl.scm.in: Add to the repository•••* examples/rrepl.scm.in: Add to the repository. * examples/Makefile.am (EXTRA_DIST): Add 'rrepl.scm.in'. (dist_examples_DATA, CLEANFILES): Add 'rrepl.scm'. * examples/README: Update. Artyom V. Poptsov2015-07-263-5/+92
* examples/echo/server.scm.in: Update copyright datesArtyom V. Poptsov2015-02-221-1/+1
* examples/echo/server.scm.in (print-help): Rename•••* examples/echo/server.scm.in (print-help): Rename to `print-help-and-exit'. (main): Use it. Artyom V. Poptsov2015-02-221-7/+5
* examples/echo/client.scm.in (get-prvkey, main): Simplify checksArtyom V. Poptsov2015-02-221-8/+5
* examples/echo/client.scm.in (print-help): Rename•••* examples/echo/client.scm.in (print-help): Rename to `print-help-and-exit'. (main): Use it. Remove extra checks. Artyom V. Poptsov2015-02-221-16/+8
* examples/sssh{,d}.scm.in: Handle exit status•••* examples/ssshd.scm.in (handle-request-exec): Send exit status. * examples/sssh.scm.in (main): Handle exit status. * NEWS: Update. Artyom V. Poptsov2015-02-122-8/+20
* tests/sssh-ssshd.scm: Use test `known_hosts' file•••* examples/sssh.scm.in (*option-spec*): Add `known-hosts-file' option. (main): Handle it. * tests/sssh-ssshd.scm: Fix a bug in the test suite: use test `known_hosts' file to make sure that it has no records. ("ssshd, start"): Add a delay to make sure that ssshd started. ("sssh, exec"): Improve. Do cleanup at the end of the TC. (*sssh-cmd*): Set `knownhosts' file explicitly. Artyom Poptsov2014-07-191-0/+5
* key-func.c (guile_ssh_private_key_from_file): Remove `session' parameter•••* ssh/key-func.c (guile_ssh_private_key_from_file): Remove `session' parameter. All callers updated. * doc/api-keys.texi (Keys): Update description of `private-key-from-file'. * examples/echo/client.scm.in (get-prvkey): Update. * tests/key.scm ("private-key-from-file"): Update. * tests/client-server.scm ("userauth-public-key!, success"): Update. * NEWS: Update. Artyom Poptsov2014-06-061-1/+1
* ssh/auth.c: Rename some procedures•••* ssh/auth.c (guile_ssh_userauth_pubkey): Rename to `guile_ssh_userauth_public_key_x'. All callers updated. (guile_ssh_userauth_pubkey_auto_x): Rename to `guile_ssh_userauth_public_key_auto_x'. All callers updated. (guile_ssh_userauth_password): Rename to `guile_ssh_userauth_password_x'. All callers updated. (guile_ssh_userauth_public_key_try): New procedure. * ssh/auth.h, ssh/auth.scm: Update. * examples/echo/client.scm.in (main): Update. * examples/sssh.scm.in (main): Update. * tests/client-server.scm ("userauth-pubkey!, success"): Rename to "userauth-public-key!, success". Update. * doc/api-auth.texi (Auth): Update. Add description of `userauth-public-key/try' and `userauth-agent!' procedures. * NEWS: Update. Artyom Poptsov2014-06-012-2/+2
* examples/echo/client.scm.in (main): Fix a bug•••* examples/echo/client.scm.in (main): Fix a bug: Print fingerprint as a MD5 hex string. Artyom Poptsov2014-06-011-2/+2
* Use new libssh 0.6 API for handling of public key fingerprints•••Use new libssh 0.6 API for handling of public key fingerprints. Update TCs and documentation. * examples/sssh.scm.in (main): Update. * examples/echo/client.scm.in (main): Update. * ssh/session-func.c (guile_ssh_get_server_public_key): New procedure. (guile_ssh_get_public_key_hash): Change arguments. Move to `ssh/key-func.c'. All callers updated. * ssh/session.scm (bytevector->hex-string): Move to `ssh/key.scm'. (get-server-public-key): New procedure. * ssh/key-func.c (guile_ssh_get_public_key_hash): New procedure. * ssh/key.scm (get-public-key-hash, bytevector->hex-string): New procedures. * tests/client-server.scm ("get-public-key-hash"): Check md5 and sha1 fingerprints. * doc/api-sessions.texi (Sessions): Add documentation for `get-server-public-key'. Move `get-public-key-hash', `bytevector->hex-string' to `doc/api-keys.texi'. * doc/api-keys.texi (Keys): Update. * NEWS: Update. Artyom Poptsov2014-05-312-3/+5
* Merge branch 'master' into libssh06•••Conflicts: ChangeLog Artyom Poptsov2014-05-312-3/+5
|\
| * ssh/session.scm (bytevector->hex-string): New procedure.•••* ssh/session.scm (bytevector->hex-string): New procedure. * examples/echo/client.scm.in (main): Use it. * examples/sssh.scm.in (main): Use it. Artyom Poptsov2014-05-312-3/+5
* | examples/echo/client.scm.in (main): Remove public key.•••* examples/echo/client.scm.in (main): Public key is not needed anymore, remove it. (get-pubkey): Remove. Artyom Poptsov2014-05-301-11/+2
* | Perform basic work on porting of Guile-SSH on libssh 0.6.3•••Perform basic work on porting of Guile-SSH on libssh 0.6.3. Currently it compiles with 0.6.3 and 4 of 5 tests pass. There is some work that should be done. * ssh/auth.c (guile_ssh_userauth_pubkey): Update. Change argument list. All callers updated. (guile_ssh_userauth_autopubkey_x): Update. Rename to `guile_ssh_userauth_pubkey_auto_x'. Change argument list. All callers updated. (guile_ssh_userauth_agent_x): New procedure. * ssh/auth.scm: Update. * ssh/key-func.c (public_key_to_ssh_string): Remove. (guile_ssh_public_key_to_string): Update. (guile_ssh_private_key_from_file): Update. (guile_ssh_public_key_from_private_key): Update. (guile_ssh_public_key_from_file): Update. Change argument list. * ssh/key-type.c (free_key_smob): Update. (scm_from_ssh_key_type): Add ECDSA. (guile_ssh_key_get_type): Update. (_private_key_p, _public_key_p): Update. * ssh/key-type.h: Update. * ssh/message-func.c (get_auth_req): Update. * ssh/Makefile.am (libguile_ssh_la_LDFLAGS): Add `-lssh'. * tests/client-server.scm ("userauth-pubkey!, success"): Update. * examples/sssh.scm.in (main): Update. Artyom Poptsov2014-05-271-1/+1
|/
* ssshd.scm.in (handle-req-auth): Handle password auth correctly.•••* examples/ssshd.scm.in (handle-req-auth): Fix handling of password authentication. Artyom Poptsov2014-03-231-13/+3
* examples/: Improve error handling on `server-accept'.•••* examples/ssshd.scm.in (main): Improve error handling on `server-accept': Print exception key on exception, wait 1 second before the second try to prevent flooding of the terminal with errors. * examples/echo/server.scm.in (main): Likewise. * doc/api-servers.texi (Servers): Update description of `server-accept'. Artyom Poptsov2014-03-232-4/+8
* examples/ssshd.scm.in: Add `--port' option.•••* examples/ssshd.scm.in: Add `--port' option. (print-help-and-exit): Update. (main): Update. Artyom Poptsov2014-03-231-3/+7
* examples/Makefile.am (EXTRA_DIST): Add .in files.Artyom Poptsov2014-03-231-0/+6
* Update/add .gitignore files.•••* .gitignore: Move rules related to object files, libraries etc. to `ssh/.gitignore'. Update. * ssh/.gitignore: Update. * build-aux/.gitignore: New file. * doc/.gitignore: New file. * examples/.gitignore: New file. * m4/.gitignore: New file. Artyom Poptsov2014-03-221-0/+8
* ssh/auth.c: Remove username form parameter list of functions.•••* ssh/auth.c (guile_ssh_userauth_pubkey): Don't take a username as an parameter. All callers updated. (guile_ssh_userauth_password): Likewise. * examples/ssshd.scm.in (handle-req-auth): Update. * examples/echo/client.scm.in (main): Update. * tests/client-server.scm ("userauth-password!, success") ("userauth-password!, denied", "userauth-password!, partial") ("userauth-pubkey!, success"): Update TCs. * doc/api-auth.texi (Auth): Update documentation for `userauth-pubkey!' and `userauth-password!'. Add a general note about setting of a username. * doc/version.texi: Update. Artyom Poptsov2014-03-222-2/+2
* examples/{sssh,ssshd}.scm.in: Improve error handling.•••* examples/sssh.scm.in (read-all): Improve error handling: Catch `guile-ssh-error'. * examples/ssshd.scm.in (read-all): Likewise. * NEWS: Update. Artyom Poptsov2014-03-072-6/+20
* examples/: Use actual path to Guile interpreter in the shebang.•••* examples/ssshd.scm: Rename to `examples/ssshd.scm.in'. * examples/sssh.scm: Rename to `examples/sssh.scm.in'. * examples/echo/client.scm: Rename to `examples/echo/client.scm.in'. * examples/echo/server.scm: Rename to `examples/echo/server.scm.in'. * examples/Makefile.am: Substitute `@GUILE@' with the actual path to Guile interpreter in *.in files. * NEWS: Update. Artyom Poptsov2014-03-015-5/+22
* server-func.c (server-accept): Throw `guile-ssh-error' on error.•••* ssh/server-func.c (server-accept): Throw `guile-ssh-error' on error. * examples/ssshd.scm (main): Handle `guile-ssh-error' on `server-accept'. * examples/echo/server.scm (main): Likewise. * doc/api-servers.texi (Servers): Update `server-accept' documentation. Add an example. * NEWS: Update. Artyom Poptsov2014-03-012-83/+101
* examples/ssshd.scm (main): Add `--pid-file' option.•••* examples/ssshd.scm (main): Add `--pid-file' option. Store the PID in a file instead of printing it to stdout. (print-help-and-exit): Update. * NEWS: Update. Artyom Poptsov2014-02-221-8/+20
* examples/sssh.scm: Take log verbosity as an argument of `--ssh-debug'.•••* examples/sssh.scm (main): Make `ssh-debug' take the log verbosity as an argument. (print-help-and-exit): Update. * NEWS: Update. Artyom Poptsov2014-02-221-6/+6
* examples/sssh.scm (print-help, print-version): Improve.•••* 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. Artyom Poptsov2014-02-221-28/+23