Dan Fandrich
b1bd199622
Enable trace debugging in example/ssh2
...
This is intended to be a test program, so debugging is likely to be
useful by default.
2023-02-15 22:44:38 -08:00
Dan Fandrich
ea05e9a52c
Improve example/ssh2 to allow unmodified use of public key auth
...
The previous hard-coded key file paths were not valid for normal users.
Make the paths relative to the user's home directory instead so they
can work out of the box. Add a banner showing what connection will be
attempted to make it easier for the user to see what is being attempted.
Enable trace debugging since this is designed as a test program.
2023-02-15 22:44:38 -08:00
Daniel Stenberg
452517d96c
style: make includes and examples code style strict
...
make travis and the makefile rule verify them too
Closes #334
2019-03-21 13:04:07 +01:00
David Byron
6c84a426be
add libssh2_scp_recv2 to support large (> 2GB) files on windows
2015-09-21 18:01:23 +01:00
Marc Hoersken
be95032e29
examples: fixed mixed line-endings introduced with aedfba25b8
2014-12-15 01:09:13 +01:00
Marc Hoersken
aedfba25b8
examples on Windows: check for WSAStartup return code
...
Fixes VS2012 code analysis warning C6031:
return value ignored: <function> could return unexpected value
2014-12-15 00:58:56 +01:00
Kamil Dudka
b31e35aba6
examples: use stderr for messages, stdout for data
...
Reported by: Karel Srot
Bug: https://bugzilla.redhat.com/867462
2012-10-22 13:39:58 +02:00
Daniel Stenberg
7ed53e21fd
libssh2_session_startup(3) => libssh2_session_handshake(3)
...
Propagate for the current function in docs and examples.
libssh2_session_startup() is deprecated.
2011-09-09 23:17:04 +02:00
Daniel Stenberg
87f79f177f
remove embedded CVS/svn tags
2011-09-09 16:12:04 +02:00
Guenter Knauf
2c1c751ad1
moved MSVC strdup define to libssh2_config.h which we include already.
2010-06-10 02:31:48 +02:00
Daniel Stenberg
4e10882e06
example: fix strdup() for MSVC compiles
...
MSVC has a _strdup() that we better use. This was reported in bug
2010-06-07 13:36:12 +02:00
Simon Josefsson
5456163507
Fix build problem.
2010-03-19 09:40:50 +01:00
Simon Josefsson
7301036421
Eat our own dog food, call libssh2_init and libssh2_exit in the examples.
2010-03-19 09:35:00 +01:00
Peter Stuge
6df87e64b7
Use LIBSSH2_HOSTKEY_HASH_SHA1 instead of _MD5 in examples and tests
...
MD5 support is optional and may not always be available, while SHA1 is both
required and recommended.
2010-01-29 23:06:31 +01:00
Simon Josefsson
b5e358618b
Move examples from example/simple to example/.
2009-12-19 10:54:45 +01:00