e34baff2ca
update export list for recent changes - take 2
Guenter Knauf
2007-06-14 09:41:07 +00:00
ddb935af3d
non-gcc compilers break with var declarations in the middle of the code.
Guenter Knauf
2007-06-14 00:38:35 +00:00
12d6b04c80
Add libssh2_session_last_errno.3 and libssh2_session_last_error.3
James Housley
2007-06-13 23:02:08 +00:00
bc0578a34d
update export list for recent changes
Guenter Knauf
2007-06-13 22:28:49 +00:00
94585bf852
fixed space detection
Guenter Knauf
2007-06-13 22:20:13 +00:00
9002319fc3
Add libssh2_channel_setenv_ex.3 and libssh2_channel_x11_req_ex.3
James Housley
2007-06-13 21:30:15 +00:00
e7e94c4079
Add libssh2_channel_request_pty_ex.3 and libssh2_channel_send_eof.3
James Housley
2007-06-13 21:07:59 +00:00
e7fdf3654c
Add libssh2_channel_open_ex.3 and libssh2_channel_process_startup.3
James Housley
2007-06-13 20:54:25 +00:00
5aa467cf54
Add libssh2_channel_free.3, libssh2_channel_handle_extended_data.3 and libssh2_channel_handle_extended_data2.3
James Housley
2007-06-13 20:09:15 +00:00
f599ec2b86
Add libssh2_channel_flush_ex.3 and libssh2_channel_forward_cancel.3
James Housley
2007-06-13 19:53:09 +00:00
d89e102b23
Add libssh2_channel_direct_tcpip_ex.3 and libssh2_channel_eof.3
James Housley
2007-06-13 17:22:15 +00:00
e6daab80fa
Add libssh2_banner_set.3 and libssh2_channel_close.3
James Housley
2007-06-13 17:03:38 +00:00
2003dc1546
The month should be the 3-letter abbreviation instead of spelled out.
James Housley
2007-06-13 16:41:33 +00:00
94a2585e9e
Update to match current code and add errors
James Housley
2007-06-13 15:45:18 +00:00
61932dc560
Update to match current code and add errors
James Housley
2007-06-13 15:27:54 +00:00
0dff967017
Fix date
James Housley
2007-06-13 15:17:25 +00:00
f74a3fecc9
Update to match current code and add errors
James Housley
2007-06-13 15:16:12 +00:00
70ea2c776e
Update to match current code and add errors
James Housley
2007-06-13 15:10:45 +00:00
72c8408a40
Update to match current code and add errors
James Housley
2007-06-13 14:23:46 +00:00
3fbdf1a644
Remove extraneous character
James Housley
2007-06-13 14:21:44 +00:00
2bb177d3e0
Update to match current code and add errors
James Housley
2007-06-13 14:07:12 +00:00
8bc4fdc3b0
Update to match current code and add errors
James Housley
2007-06-13 13:57:53 +00:00
eac8fcdd77
Update to match current code and add errors
James Housley
2007-06-13 13:50:34 +00:00
fa0c6996ef
Update to match current code and add errors
James Housley
2007-06-13 13:41:46 +00:00
45e4ec255c
Update to match current code and add errors
James Housley
2007-06-13 13:15:57 +00:00
084500e9ca
Update to match current code and add errors
James Housley
2007-06-13 13:06:48 +00:00
3e0cc45d10
Update to match current code and add errors
James Housley
2007-06-13 12:58:58 +00:00
3dece58b29
Fix spacing issue
James Housley
2007-06-13 12:58:42 +00:00
e4ec1c9aa9
Change "SEE ALSO" to SEE ALSO
James Housley
2007-06-13 12:51:10 +00:00
607e5c55e0
Update to reflect the current code and add possible error values
James Housley
2007-06-13 12:50:35 +00:00
dde2b09496
libssh2_channel_free() actually can return PACKET_EAGAIN. Update all calling functions to support that with the following API notes:
James Housley
2007-06-12 18:27:37 +00:00
f35ab0d070
Update for the libssh2_userauth_list() change
James Housley
2007-06-12 13:34:20 +00:00
041786732d
The function no longer exists
James Housley
2007-06-10 21:59:36 +00:00
d073a4ea52
include sys/types.h since the compile breaks on Linux otherwise - we need ssize_t from there
Daniel Stenberg
2007-06-10 21:26:58 +00:00
a5109ee5ba
Sharing state vairables between the userauth functions was a nice idea, but libssh2_userauth_list() can't share with the others. So to be safe don't have any share.
James Housley
2007-06-10 13:59:05 +00:00
b12a16f89c
Add a define for vsnprintf, similar to snprintf that is already there.
James Housley
2007-06-10 11:16:36 +00:00
8b4df6a9ab
Fix misspelling in trace
James Housley
2007-06-10 11:09:39 +00:00
8466a826f1
Since uint32_t is used, inttypes.h should be included.
James Housley
2007-06-09 01:34:21 +00:00
c39c618c62
* Convert all the code to properly work with a socket in non-blocking mode. All functions either return LIBSSH2_ERROR_EAGAIN or return NULL and set the error code to be LIBSSH2_ERROR_EAGAIN instead of blocking, when in non-blocking mode.
James Housley
2007-06-09 01:30:33 +00:00
bdde6c3d60
In the code rewrite libssh2_kex_method_diffie_hellman_group14_sha1_key_exchange() lost two initializer routines, restore them.
James Housley
2007-06-08 15:57:46 +00:00
cf8f4d1818
To simplify the user's error interface always use LIBSSH2_ERROR_EAGAIN. LIBSSH2CHANNEL_EAGAIN and LIBSSH2SFTP_EAGAIN are still valid, but are defined as LIBSSH2_ERROR_EAGAIN.
James Housley
2007-06-08 13:33:08 +00:00
281283d252
libssh2_session_disconnect_ex() should be returning PACKET_EAGAIN instead of LIBSSH2_ERROR_EAGAIN, so it matches the other functions return values.
James Housley
2007-06-08 12:07:09 +00:00
b2f3582a59
When shutting down sub-systems and closing the channel try our best to free any memory still allocated in the state variables
James Housley
2007-06-07 16:43:20 +00:00
bb32d080fa
Remove 2 last files
James Housley
2007-06-07 16:07:09 +00:00
eb39c0c091
Remove the removed files
James Housley
2007-06-07 16:02:57 +00:00
7d57222912
Finish making SFTP fully non-blocking capable.
James Housley
2007-06-07 16:01:12 +00:00
d141ba49f3
Make libssh2_sftp_write() be fully non-blocking. The state of the socket is fully honored. LIBSSH2SFTP_EAGAIN is returned when the call would block.
James Housley
2007-06-06 19:52:11 +00:00
4b8db8c1ab
Modify the code to truely support non-blocking. Propogate the EAGAIN error all the way up to the user interface. All code modules bug sftp.c have been completed.
James Housley
2007-06-06 12:34:06 +00:00
9896c291e4
libssh2_packet_read() was checking the "errno" even when recv() didn't return an error. "errno" should have been zero by the recv() call but doesn't seem to be on all systems. Only check when recv() says there is an error.
beforenb2-0.14
James Housley
2007-06-06 10:13:30 +00:00
412b25d971
Initially the libssh2 code was indented with tabs of 4 spaces. Some of the recent commits converted the tabs to 4 spaces, which matched the initial indent size. Other commits converted the tabs to 8 spaces, this didn't match.
James Housley
2007-05-28 17:56:08 +00:00
355c9c634b
Eberhard Mattes' fix for libssh2_packet_read() for when reading very small chunks at a time.
Daniel Stenberg
2007-05-08 19:20:05 +00:00
62f77b1e4b
Fix building out of the source tree.
Dan Fandrich
2007-05-01 20:07:08 +00:00
145bbabb96
include libssh_config.h to get the configure vars in.
Guenter Knauf
2007-04-26 23:59:14 +00:00
40970adb53
changed to configure defines to control inclusion of headers from libssh2_config.h.
Guenter Knauf
2007-04-26 22:59:29 +00:00
34bcc69a1a
Add more of the new programs to be ignored
James Housley
2007-04-22 19:53:58 +00:00
046edb478f
Test programs for libssh2_sftp_mkdir_ex() and libssh2_sftp_mkdirnb_ex()
James Housley
2007-04-22 19:52:51 +00:00
54e6528822
Document libssh2_sftp_mkdir_ex() and libssh2_sftp_mkdirnb_ex()
James Housley
2007-04-22 19:51:53 +00:00
a66885c51c
Make _libssh2_sftp_mkdir_ex() fully non-blocking safe. This makes libssh2_sftp_mkdirnb_ex() non-blocking safe and libssh2_sftp_mkdir_ex() blocking safe
James Housley
2007-04-22 19:51:24 +00:00
510df9bf52
libssh2_sftp.h is needed for all of these functions
James Housley
2007-04-22 17:18:03 +00:00
61807e8d4d
Fix a couple of locations where read should have been readdir
James Housley
2007-04-22 17:09:23 +00:00
9ff217b6d2
libssh2_sftp_seek() and libssh2_sftp_tell() are NB-SAFE, since they only set variables
James Housley
2007-04-22 16:42:54 +00:00
c43c390a7d
Create two sample programs, similar to sftp.c and sftp_nonblock.c, that will test blocking and non-blocking write SFTP transfers
James Housley
2007-04-22 15:57:52 +00:00
7eccfc7fbc
Make _libssh2_sftp_write() fully non-blocking safe. This makes libssh2_sftp_writenb() non-blocking safe and libssh2_sftp_write() blocking safe
James Housley
2007-04-22 15:56:06 +00:00
d79939fc3a
Commit the version that actually uses the non-blocking code
James Housley
2007-04-22 15:05:06 +00:00
c5fb9d8f1a
Commit the version that actually uses the non-blocking read
James Housley
2007-04-22 14:51:21 +00:00
e85a2199b6
Update comment
James Housley
2007-04-22 14:47:27 +00:00
3bd3eb35b3
Make sftp_nonblock.c a non-blocking version of sftp.c, just like sftpdir.c
James Housley
2007-04-22 14:16:26 +00:00
08fd7e259b
Move sftp_nonblock.c to sftp_RW_nonblock.c, since it isn't just a non-blocking version of sftp.c. It has different command line parameters and tries to do more
James Housley
2007-04-22 14:15:47 +00:00
42f0f69a35
Make _libssh2_sftp_read() fully non-blocking safe. This makes libssh2_sftp_readnb() non-blocking safe and libssh2_sftp_read() blocking safe
James Housley
2007-04-22 13:13:51 +00:00
75ac861c7a
* Explicity set blocking
James Housley
2007-04-22 13:10:48 +00:00
04e975b6c7
Unless we tell libssh2 that we are blocking, which we are because didn't set the socket to non-blocking it will think we are in non-blocking mode in a lot of places
James Housley
2007-04-22 11:01:54 +00:00
f14aa01bb8
Add comment about setting non-blocking
James Housley
2007-04-22 11:00:02 +00:00
91c8715da4
fixed ARFLAGS for CodeWarrior build; added libssh2_sftp_writenb to export list.
Guenter Knauf
2007-04-21 18:46:30 +00:00
2dc313d365
Non-blocking work
James Housley
2007-04-21 18:16:23 +00:00
f8fe38e3a5
Create a simple test for sftp readdir with non-blocking
James Housley
2007-04-21 18:08:00 +00:00
bda32b6bbf
Document libssh2_sftp_readdir() and libssh2_sftp_readdirnb()
James Housley
2007-04-21 18:07:17 +00:00
09deb228f1
Added some consts to struct members
Dan Fandrich
2007-04-19 19:40:45 +00:00
1a6e00cfef
Fixed some compiler warnings and made some more tables 'const'.
Dan Fandrich
2007-04-18 21:03:42 +00:00
9b81a01376
Made some function parameters in the API const. This is an API change, but correctly-written applications should see no source or binary compatibility issues. Also fixed a few compiler warnings.
Dan Fandrich
2007-04-18 18:51:03 +00:00
4c6bfdd5b2
Bail out on a short kex packet.
Dan Fandrich
2007-04-17 18:30:05 +00:00
5dd66e604f
Made most internal tables 'static const'.
Dan Fandrich
2007-04-17 18:12:41 +00:00
d45d509a09
added ranlib when library is created with ar.
Guenter Knauf
2007-04-16 20:56:08 +00:00
197764afcc
Properly propagate out of memory errors.
Dan Fandrich
2007-04-13 18:28:10 +00:00
d79f906b52
Add.
Simon Josefsson
2007-04-13 06:09:12 +00:00
08cf9fd7de
Add.
Simon Josefsson
2007-04-13 06:08:25 +00:00
7edad3046e
Make ChangeLog a phony target.
Simon Josefsson
2007-04-13 06:06:15 +00:00
f33375bc03
changed to configure defines to control inclusion of headers from libssh2_config.h.
Guenter Knauf
2007-04-12 22:20:18 +00:00
159c351d05
Win32 has no ENOTCONN - checked MSVC6, MingW32, Borland C++ 5.5, OpenWatcom 1.6; all have this define in winsock2.h but blocked with '#if 0'; changed to configure defines to control inclusion of headers from libssh2_config.h
Guenter Knauf
2007-04-12 22:18:27 +00:00
8371fa7b87
updated Makefile.netware to add more exports; fixed linking; updated OpenSSL version to have users use latest.
Guenter Knauf
2007-04-12 22:15:12 +00:00
0eefd06af0
removed HAVE_IOCTLSOCKET define; updated OpenSSL version to have users use latest.
Guenter Knauf
2007-04-12 22:13:14 +00:00
0c060e1ccb
added two more typedefs but blocked them so they are only used with MSVC6 or lower (dont know if later MSVC versions still need them).
Guenter Knauf
2007-04-12 22:08:42 +00:00
51e49f5a1e
fixed wrong type and sync with usage.
Guenter Knauf
2007-04-12 22:03:27 +00:00
93e36271a6
check for sys/time.h
Guenter Knauf
2007-04-12 22:00:55 +00:00
6dfb2e3009
Better handle out of memory situations.
Dan Fandrich
2007-04-12 21:51:57 +00:00
a84d2ca430
added --enable-debug
Daniel Stenberg
2007-04-12 21:40:22 +00:00