summaryrefslogtreecommitdiff
path: root/examples (follow)
Commit message (Collapse)AuthorAgeFilesLines
* configure.ac: Bugfix: Don't make symlinks to 'sssh{,d}.scm'Artyom V. Poptsov2017-05-091-2/+16
| | | | | | | | | | | | | | The building process would always fail on fresh source tree because 'configure' tried to make a symlink or a copy of files that were not present yet. This patch fixes the building process. Reported by Ludovic Courtès, on #guix IRC channel. * configure.ac: Don't make symlinks to 'sssh.scm' and 'ssshd.scm'. * examples/Makefile.am: Consider 'sssh.scm' and 'ssshd.scm' as generated scripts to ensure that they are present in the build directory so 'sssh-ssshd.scm' test suite will not fail. * NEWS: Update.
* build: Allow VPATH builds.Ludovic Courtès2017-04-231-0/+1
| | | | | | | | | | | 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>
* examples/Makefile.am: Update copyright datesArtyom V. Poptsov2016-08-071-1/+1
|
* examples/uptop.scm.in: Add to the repositoryArtyom V. Poptsov2016-08-074-2/+97
| | | | | | * examples/uptop.scm.in: Add to the repository. * examples/Makefile.am (EXTRA_DIST, dist_examples_DATA): Update. * examples/README, examples/.gitignore: Update.
* examples/.gitignore: Ignore auto-generated filesArtyom V. Poptsov2015-12-241-0/+2
|
* examples/README: UpdateArtyom V. Poptsov2015-12-231-2/+4
| | | | * examples/README: Fix description of 'rpc.scm' and 'ssshd.scm'.
* 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'Artyom V. Poptsov2015-12-202-4/+5
| | | | | | | | * 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.
* 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 bitArtyom V. Poptsov2015-10-291-3/+2
| | | | | | | | * examples/sssh.scm.in (handle-error): Simplify a bit, update the docstring.
| * examples/sssh.scm.in: Fix repository URLArtyom V. Poptsov2015-10-291-1/+1
| |
* | examples/sscp.scm.in (cp): UpdateArtyom V. Poptsov2015-10-281-1/+1
| | | | | | | | * examples/sscp.scm.in (cp): Replace 'sftp-open-file' with 'sftp-open'.
* | examples/sscp.scm.in: Add to the repositoryArtyom V. Poptsov2015-10-282-3/+104
|/ | | | | * examples/sscp.scm.in: Add to the repository. * examples/Makefile.am: Update.
* 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 repositoryArtyom V. Poptsov2015-07-315-2/+188
| | | | | | | | | | * 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.
* 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 descriptionArtyom V. Poptsov2015-07-281-3/+4
| | | | | * examples/rrepl.scm.in: Update description. (print-help-and-exit): Update.
* examples/rrepl.scm.in: Add to the repositoryArtyom V. Poptsov2015-07-263-5/+92
| | | | | | | * 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.
* examples/echo/server.scm.in: Update copyright datesArtyom V. Poptsov2015-02-221-1/+1
|
* examples/echo/server.scm.in (print-help): RenameArtyom V. Poptsov2015-02-221-7/+5
| | | | | | * examples/echo/server.scm.in (print-help): Rename to `print-help-and-exit'. (main): Use it.
* examples/echo/client.scm.in (get-prvkey, main): Simplify checksArtyom V. Poptsov2015-02-221-8/+5
|
* examples/echo/client.scm.in (print-help): RenameArtyom V. Poptsov2015-02-221-16/+8
| | | | | | * examples/echo/client.scm.in (print-help): Rename to `print-help-and-exit'. (main): Use it. Remove extra checks.
* examples/sssh{,d}.scm.in: Handle exit statusArtyom V. Poptsov2015-02-122-8/+20
| | | | | | * examples/ssshd.scm.in (handle-request-exec): Send exit status. * examples/sssh.scm.in (main): Handle exit status. * NEWS: Update.
* tests/sssh-ssshd.scm: Use test `known_hosts' fileArtyom Poptsov2014-07-191-0/+5
| | | | | | | | | | | * 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.
* key-func.c (guile_ssh_private_key_from_file): Remove `session' parameterArtyom Poptsov2014-06-061-1/+1
| | | | | | | | | | | * 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.
* ssh/auth.c: Rename some proceduresArtyom Poptsov2014-06-012-2/+2
| | | | | | | | | | | | | | | | | | * 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.
* examples/echo/client.scm.in (main): Fix a bugArtyom Poptsov2014-06-011-2/+2
| | | | | * examples/echo/client.scm.in (main): Fix a bug: Print fingerprint as a MD5 hex string.
* Use new libssh 0.6 API for handling of public key fingerprintsArtyom Poptsov2014-05-312-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* Merge branch 'master' into libssh06Artyom Poptsov2014-05-312-3/+5
|\ | | | | | | | | Conflicts: ChangeLog
| * ssh/session.scm (bytevector->hex-string): New procedure.Artyom Poptsov2014-05-312-3/+5
| | | | | | | | | | | | * ssh/session.scm (bytevector->hex-string): New procedure. * examples/echo/client.scm.in (main): Use it. * examples/sssh.scm.in (main): Use it.
* | examples/echo/client.scm.in (main): Remove public key.Artyom Poptsov2014-05-301-11/+2
| | | | | | | | | | | | * examples/echo/client.scm.in (main): Public key is not needed anymore, remove it. (get-pubkey): Remove.
* | Perform basic work on porting of Guile-SSH on libssh 0.6.3Artyom Poptsov2014-05-271-1/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* ssshd.scm.in (handle-req-auth): Handle password auth correctly.Artyom Poptsov2014-03-231-13/+3
| | | | | * examples/ssshd.scm.in (handle-req-auth): Fix handling of password authentication.
* examples/: Improve error handling on `server-accept'.Artyom Poptsov2014-03-232-4/+8
| | | | | | | | | | * 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'.
* examples/ssshd.scm.in: Add `--port' option.Artyom Poptsov2014-03-231-3/+7
| | | | | | * examples/ssshd.scm.in: Add `--port' option. (print-help-and-exit): Update. (main): Update.
* examples/Makefile.am (EXTRA_DIST): Add .in files.Artyom Poptsov2014-03-231-0/+6
|
* Update/add .gitignore files.Artyom Poptsov2014-03-221-0/+8
| | | | | | | | | | * .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.
* ssh/auth.c: Remove username form parameter list of functions.Artyom Poptsov2014-03-222-2/+2
| | | | | | | | | | | | | | | * 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.
* examples/{sssh,ssshd}.scm.in: Improve error handling.Artyom Poptsov2014-03-072-6/+20
| | | | | | | * examples/sssh.scm.in (read-all): Improve error handling: Catch `guile-ssh-error'. * examples/ssshd.scm.in (read-all): Likewise. * NEWS: Update.
* examples/: Use actual path to Guile interpreter in the shebang.Artyom Poptsov2014-03-015-5/+22
| | | | | | | | | | | | * 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.
* server-func.c (server-accept): Throw `guile-ssh-error' on error.Artyom Poptsov2014-03-012-83/+101
| | | | | | | | | | | * 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.
* examples/ssshd.scm (main): Add `--pid-file' option.Artyom Poptsov2014-02-221-8/+20
| | | | | | | * 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.
* examples/sssh.scm: Take log verbosity as an argument of `--ssh-debug'.Artyom Poptsov2014-02-221-6/+6
| | | | | | | * examples/sssh.scm (main): Make `ssh-debug' take the log verbosity as an argument. (print-help-and-exit): Update. * NEWS: Update.