Viktor Szakats 
							
						 
					 
					
						
						
							
						
						433c327ee2 
					 
					
						
						
							
							url updates, HTTP => HTTPS  
						
						 
						
						... 
						
						
						
						Closes  #87  
						
						
					 
					
						2016-02-24 23:44:13 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								keith-daigle 
							
						 
					 
					
						
						
							
						
						a49f479b4c 
					 
					
						
						
							
							Update examples/scp.c to fix bug where large files on win32 would cause got to wrap and go negative  
						
						 
						
						
						
						
					 
					
						2015-09-21 18:01:24 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								David Byron 
							
						 
					 
					
						
						
							
						
						6c84a426be 
					 
					
						
						
							
							add libssh2_scp_recv2 to support large (> 2GB) files on windows  
						
						 
						
						
						
						
					 
					
						2015-09-21 18:01:23 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Alexander Lamaison 
							
						 
					 
					
						
						
							
						
						af14462d53 
					 
					
						
						
							
							Fix builds with Visual Studio 2015.  
						
						 
						
						... 
						
						
						
						VS2015 moved stdio functions to the header files as inline function.  That means check_function_exists can't detect them because it doesn't use header files - just does a link check.  Instead we need to use check_symbol_exists with the correct headers. 
						
						
					 
					
						2015-07-25 22:19:46 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Kamil Dudka 
							
						 
					 
					
						
						
							
						
						d48d7c3a87 
					 
					
						
						
							
							cmake: include CMake files in the release tarballs  
						
						 
						
						... 
						
						
						
						Despite we announced the CMake support in libssh2-1.6.0 release notes,
the files required by the CMake build system were not included in the
release tarballs.  Hence, the only way to use CMake for build was the
upstream git repository.
This commit makes CMake actually supported in the release tarballs. 
						
						
					 
					
						2015-07-02 13:09:49 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Marc Hoersken 
							
						 
					 
					
						
						
							
						
						6f95c2efd3 
					 
					
						
						
							
							nonblocking examples: fix warning about unused tvdiff on Mac OS X  
						
						 
						
						
						
						
					 
					
						2015-03-24 21:42:10 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Jakob Egger 
							
						 
					 
					
						
						
							
						
						a1e744bb5e 
					 
					
						
						
							
							direct_tcpip: Fixed channel write  
						
						 
						
						... 
						
						
						
						There were 3 bugs in this loop:
1) Started from beginning after partial writes
2) Aborted when 0 bytes were sent
3) Ignored LIBSSH2_ERROR_EAGAIN
See also:
https://trac.libssh2.org/ticket/281 
https://trac.libssh2.org/ticket/293  
						
						
					 
					
						2015-03-15 11:20:17 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Alexander Lamaison 
							
						 
					 
					
						
						
							
						
						bbbdf946a7 
					 
					
						
						
							
							Prevent collisions between CMake and Autotools in examples/ and tests/.  
						
						 
						
						
						
						
					 
					
						2015-03-13 07:47:41 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Alexander Lamaison 
							
						 
					 
					
						
						
							
						
						6bf8983368 
					 
					
						
						
							
							CMake build system.  
						
						 
						
						... 
						
						
						
						Tested:
 - Windows:
    - Visual C++ 2005/2008/2010/2012/2013/MinGW-w64
    - static/shared
    - 32/64-bit
    - OpenSSL/WinCNG
    - Without zlib
 - Linux:
    - GCC 4.6.3/Clang 3.4
    - static/shared
    - 32/64-bit
    - OpenSSL/Libgcrypt
    - With/Without zlib
 - MacOS X
    - AppleClang 6.0.0
    - static
    - 64-bit
    - OpenSSL
    - Without zlib
Conflicts:
	README 
						
						
					 
					
						2015-03-12 22:48:38 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Dan Fandrich 
							
						 
					 
					
						
						
							
						
						d811750645 
					 
					
						
						
							
							examples/x11.c: include sys/select.h for improved portability  
						
						 
						
						
						
						
					 
					
						2015-03-04 22:57:25 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Marc Hoersken 
							
						 
					 
					
						
						
							
						
						253d5922f2 
					 
					
						
						
							
							examples/x11.c: fix result of operation is garbage or undefined  
						
						 
						
						... 
						
						
						
						Fix use of uninitialized structure w_size_bck.
Detected by clang scan in	line 386, column 28. 
						
						
					 
					
						2014-12-29 18:31:11 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Marc Hoersken 
							
						 
					 
					
						
						
							
						
						79d63df12d 
					 
					
						
						
							
							examples/x11.c: remove dead assigments of some return values  
						
						 
						
						... 
						
						
						
						Detected by clang scan in line 212, column 9.
Detected by clang scan in line 222, column 13.
Detected by clang scan in	line 410, column 13. 
						
						
					 
					
						2014-12-29 18:24:17 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Marc Hoersken 
							
						 
					 
					
						
						
							
						
						86552bf2bb 
					 
					
						
						
							
							examples/x11.c: fix possible memory leak if read fails  
						
						 
						
						... 
						
						
						
						Detected by clang scan in line 224, column 21. 
						
						
					 
					
						2014-12-27 14:00:48 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Marc Hoersken 
							
						 
					 
					
						
						
							
						
						477e609a84 
					 
					
						
						
							
							examples/x11.c: fix invalid removal of first list element  
						
						 
						
						... 
						
						
						
						Fix use of memory after it was being freed.
Detected by clang scan in line 56, column 12. 
						
						
					 
					
						2014-12-27 13:48:51 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Marc Hoersken 
							
						 
					 
					
						
						
							
						
						8a731d6217 
					 
					
						
						
							
							examples on Windows: use native SOCKET-type instead of int  
						
						 
						
						... 
						
						
						
						And check return values accordingly. 
						
						
					 
					
						2014-12-22 17:03:42 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Marc Hoersken 
							
						 
					 
					
						
						
							
						
						34dc1d61b4 
					 
					
						
						
							
							x11 example: check return value of socket function  
						
						 
						
						
						
						
					 
					
						2014-12-15 01:10:29 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Marc Hoersken 
							
						 
					 
					
						
						
							
						
						be95032e29 
					 
					
						
						
							
							examples: fixed mixed line-endings introduced with  aedfba25b8 
						
						 
						
						
						
						
					 
					
						2014-12-15 01:09:13 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Marc Hoersken 
							
						 
					 
					
						
						
							
						
						977dbb7511 
					 
					
						
						
							
							examples on Windows: check for socket return code  
						
						 
						
						... 
						
						
						
						Fixes VS2012 code analysis warning C28193:
The variable holds a value that must be examined 
						
						
					 
					
						2014-12-15 00:58:57 +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  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Guenter Knauf 
							
						 
					 
					
						
						
							
						
						3260beb07a 
					 
					
						
						
							
							sftpdir.c: added authentication method detection.  
						
						 
						
						... 
						
						
						
						Stuff copied over from ssh2.c to make testing a bit easier. 
						
						
					 
					
						2014-12-03 15:19:32 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Marc Hoersken 
							
						 
					 
					
						
						
							
						
						0e4e14109a 
					 
					
						
						
							
							tcpip-forward.c: Fixed warning that pointer targets differ in signedness  
						
						 
						
						... 
						
						
						
						libssh2_channel_forward_listen_ex uses ints instead of unsigned ints. 
						
						
					 
					
						2014-05-18 11:35:19 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Marc Hoersken 
							
						 
					 
					
						
						
							
						
						b9dc6112d7 
					 
					
						
						
							
							tcpip-forward.c: Removed unused variables shost, sport and sockopt  
						
						 
						
						
						
						
					 
					
						2014-05-18 10:16:24 +02: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  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Steven Dake 
							
						 
					 
					
						
						
							
						
						a46ef85a56 
					 
					
						
						
							
							In examples/x11.c, Make sure sizeof passed to read operation is correct  
						
						 
						
						... 
						
						
						
						sizeof(buf) expands to 8 or 4 (since its a pointer).  This variable may
have been static in the past, leading to this error.
Signed-off-by: Steven Dake <sdake@redhat.com > 
						
						
					 
					
						2012-03-13 22:19:54 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Steven Dake 
							
						 
					 
					
						
						
							
						
						626f91da07 
					 
					
						
						
							
							Fix suspicious sizeof usage in examples/x11.c  
						
						 
						
						... 
						
						
						
						In the x11 example, sizeof(buf) = 8UL (on x86_64), when this should
probably represent the buffer size available.  I am not sure how to
test that this change is actually correct, however.
Signed-off-by: Steven Dake <sdake@redhat.com > 
						
						
					 
					
						2012-03-13 22:19:18 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Peter Stuge 
							
						 
					 
					
						
						
							
						
						aa8f2cbf33 
					 
					
						
						
							
							example/x11: Set raw terminal mode manually instead of with cfmakeraw()  
						
						 
						
						... 
						
						
						
						OpenSolaris has no cfmakeraw() so to make the example more portable
we simply do the equivalent operations on struct termios ourselves.
Thanks to Tom Weber for reporting this problem, and finding a solution. 
						
						
					 
					
						2012-02-29 22:27:18 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Peter Stuge 
							
						 
					 
					
						
						
							
						
						4774d500e7 
					 
					
						
						
							
							example/x11: Build only when sys/un.h is found by configure  
						
						 
						
						... 
						
						
						
						The example can't be built on systems without AF_UNIX sockets. 
						
						
					 
					
						2012-02-13 00:40:24 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Peter Stuge 
							
						 
					 
					
						
						
							
						
						e394987911 
					 
					
						
						
							
							Add a tcpip-forward example which demonstrates remote port forwarding  
						
						 
						
						
						
						
					 
					
						2012-02-02 17:25:45 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Peter Stuge 
							
						 
					 
					
						
						
							
						
						effbb72192 
					 
					
						
						
							
							example/subsystem_netconf.c: Return error when read buffer is too small  
						
						 
						
						... 
						
						
						
						Also remove a little redundancy in the read loop condition. 
						
						
					 
					
						2012-02-01 11:35:05 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Peter Stuge 
							
						 
					 
					
						
						
							
						
						0ebe6f44bd 
					 
					
						
						
							
							example/subsystem_netconf.c: Add a missing newline in an error message  
						
						 
						
						
						
						
					 
					
						2012-02-01 11:35:00 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Daniel Stenberg 
							
						 
					 
					
						
						
							
						
						09139ef065 
					 
					
						
						
							
							ssh2_exec: skip error outputs for EAGAIN  
						
						 
						
						... 
						
						
						
						Since the example uses non-blocking mode, it will just flood the output
with this "nonsense" error. 
						
						
					 
					
						2011-12-08 10:54:46 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Kamil Dudka 
							
						 
					 
					
						
						
							
						
						c0974e5ca3 
					 
					
						
						
							
							example/sftp_RW_nonblock: do not ignore LIBSSH2_ERROR_EAGAIN  
						
						 
						
						... 
						
						
						
						Bug: https://bugzilla.redhat.com/745420  
						
						
					 
					
						2011-10-24 22:22:57 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Peter Stuge 
							
						 
					 
					
						
						
							
						
						c292378327 
					 
					
						
						
							
							example/ssh2_agent: Print host key fingerprint before authentication  
						
						 
						
						... 
						
						
						
						Also moves the comment about not being authenticated to before the
agent authentication takes place, so that it better matches the code. 
						
						
					 
					
						2011-10-05 16:55:58 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Mikhail Gusarov 
							
						 
					 
					
						
						
							
						
						d343e3405a 
					 
					
						
						
							
							Add missing .gitignore entries  
						
						 
						
						
						
						
					 
					
						2011-09-12 15:38:03 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Guenter Knauf 
							
						 
					 
					
						
						
							
						
						46792a9fca 
					 
					
						
						
							
							Added casts to silent compiler warnings.  
						
						 
						
						
						
						
					 
					
						2011-09-10 16:38:51 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Guenter Knauf 
							
						 
					 
					
						
						
							
						
						b5cd8fe120 
					 
					
						
						
							
							Fixed uint64_t printf.  
						
						 
						
						
						
						
					 
					
						2011-09-10 16:29:29 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Guenter Knauf 
							
						 
					 
					
						
						
							
						
						26a9aca598 
					 
					
						
						
							
							Removed unused var.  
						
						 
						
						
						
						
					 
					
						2011-09-10 15:24:08 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Guenter Knauf 
							
						 
					 
					
						
						
							
						
						bff91fe2a0 
					 
					
						
						
							
							Added 2 samples not mentioned.  
						
						 
						
						
						
						
					 
					
						2011-09-10 15:20:06 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Guenter Knauf 
							
						 
					 
					
						
						
							
						
						e399a852b9 
					 
					
						
						
							
							Removed unused var.  
						
						 
						
						
						
						
					 
					
						2011-09-10 14:48:06 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Guenter Knauf 
							
						 
					 
					
						
						
							
						
						3fb3ba571b 
					 
					
						
						
							
							Kill stupid gcc 3.x uninitialized warning.  
						
						 
						
						
						
						
					 
					
						2011-09-10 14:22:08 +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 
							
						 
					 
					
						
						
							
						
						50d451e307 
					 
					
						
						
							
							Fix for systems which need sys/select.h.  
						
						 
						
						
						
						
					 
					
						2011-09-08 13:53:05 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Daniel Stenberg 
							
						 
					 
					
						
						
							
						
						420f0b7793 
					 
					
						
						
							
							subsystem_netconf.c: fix compiler warnings  
						
						 
						
						
						
						
					 
					
						2011-08-21 15:24:55 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Henrik Nordstrom 
							
						 
					 
					
						
						
							
						
						2fe1770d9f 
					 
					
						
						
							
							Avoid reuse after free when closing X11 channels  
						
						 
						
						
						
						
					 
					
						2011-08-16 10:27:49 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Peter Stuge 
							
						 
					 
					
						
						
							
						
						b232eeb598 
					 
					
						
						
							
							example/subsystem_netconf.c: Add missing #include <string.h>  
						
						 
						
						
						
						
					 
					
						2011-07-17 08:04:52 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Peter Stuge 
							
						 
					 
					
						
						
							
						
						f922df9e1b 
					 
					
						
						
							
							example/subsystem_netconf.c: Discard ]]>]]> and return only XML response  
						
						 
						
						
						
						
					 
					
						2011-07-17 08:00:48 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Peter Stuge 
							
						 
					 
					
						
						
							
						
						7e47bd6640 
					 
					
						
						
							
							example/subsystem_netconf.c: Fix uninitialized variable bug  
						
						 
						
						
						
						
					 
					
						2011-07-17 07:18:39 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Peter Stuge 
							
						 
					 
					
						
						
							
						
						4ae907cdef 
					 
					
						
						
							
							example: Add subsystem_netconf.c  
						
						 
						
						... 
						
						
						
						This example demonstrates how to use libssh2 to send a request to
the NETCONF subsystem available e.g. in JunOS.
See also http://tools.ietf.org/html/draft-ietf-netconf-ssh-06  
						
						
					 
					
						2011-07-17 07:08:48 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Daniel Stenberg 
							
						 
					 
					
						
						
							
						
						59673a111e 
					 
					
						
						
							
							sftp_write_sliding.c: indent fix  
						
						 
						
						... 
						
						
						
						Use the standard indenting and removed CVS leftover comment 
						
						
					 
					
						2011-05-10 10:17:32 +02:00