Henrik Nordstrom
2fe1770d9f
Avoid reuse after free when closing X11 channels
2011-08-16 10:27:49 +02:00
Daniel Stenberg
3c71ad4fce
_libssh2_channel_write: handle window_size == 0 better
...
When about to send data on the channel and the window size is 0, we must
not just return 0 if the transport_read() function returned EAGAIN as it
then causes a busy-loop.
Bug: http://libssh2.org/mail/libssh2-devel-archive-2011-08/0011.shtml
2011-08-11 14:36:05 +02:00
Daniel Stenberg
79f48e4881
gettimeofday: fix name space pollution
...
For systems without its own gettimeofday() implementation, we still must
not provide one outside our namespace.
Reported by: Bill Segall
2011-08-05 23:50:22 +02:00
Dan Fandrich
49453c9ae2
libssh2.pc.in: Fixed spelling in pkgconfig file
2011-08-05 14:33:26 -07: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
01d199180a
man page cleanups: non-existing functions need no man pages
2011-07-16 00:22:00 +02:00
Daniel Stenberg
7e18862eae
libssh2_new_host_entry.3: removed
...
This is just junk leftovers.
2011-07-16 00:17:12 +02:00
Daniel Stenberg
45ffdcfe3c
userauth_keyboard_interactive: fix buffer overflow
...
Partly reverse 566894494b4972ae12 which was simplifying the code far too
much and ended up overflowing a buffer within the LIBSSH2_SESSION
struct. Back to allocating the buffer properly like it used to do.
Bug: http://www.libssh2.org/mail/libssh2-devel-archive-2011-06/0032.shtml
Reported by: Alfred Gebert
2011-06-29 21:32:50 +02:00
Daniel Stenberg
dadc05fdfd
keyboard-interactive man page: cleaned up
2011-06-29 20:49:35 +02:00
Alfred Gebert
733bf877f8
_libssh2_recv(): handle ENOENT error as EAGAIN
...
A sftp session failed with error "failure establishing ssh session" on
Solaris and HP-UX. Sometimes the first recv() function call sets errno
to ENOENT. In the man pages for recv of Solaris and HP-UX the error
ENOENT is not documented.
I tested Solaris SPARC and x86, HP-UX i64, AIX, Windows and Linux.
2011-06-28 22:43:50 +02:00
Daniel Stenberg
2db7d9c655
agent_list_identities: fix out of scope access
...
An auto variable out of scope was being referenced and used.
fixes #220
2011-06-20 00:08:51 +02:00
Daniel Stenberg
9a24b03402
_libssh2_wait_socket: fix timeouts for poll() uses
2011-06-20 00:08:51 +02:00
Daniel Stenberg
81d53de4dc
windows: inclusion fix
...
include winsock2.h for all windows compilers
2011-06-04 22:24:41 +02:00
Daniel Stenberg
5b004a4b67
keyb-interactive: add the fixed buffer
...
Belongs to commit 5668944
2011-05-31 23:35:49 +02:00
Daniel Stenberg
da64618c9a
code cleanup: don't use C99/c++ comments
...
We aim for C89 compliance
2011-05-31 23:35:06 +02:00
Daniel Stenberg
566894494b
keyb-interactive: allow zero length fields
...
Allow zero length fields so they don't cause malloc(0) calls
Avoid free()ing NULL pointers
Avoid a malloc of a fixed 5 byte buffer.
2011-05-31 23:33:56 +02:00
Daniel Stenberg
0723dab4d7
libssh2_channel_process_startup.3: clean up
...
Remove the references to the macro-fied shortcuts as they have their own
individual man pages.
Made the prototype different and more readable.
2011-05-30 09:28:31 +02:00
Daniel Stenberg
67ba8713a6
man page: fix .BR lines
...
We don't use \fI etc on .BR lines
2011-05-30 09:26:34 +02:00
Daniel Stenberg
dade304c47
userauth_keyboard_interactive: skip code on zero length auth
2011-05-25 22:39:25 +02:00
Daniel Stenberg
6e8229a221
libssh2_channel_forward_accept.3: mention how to get error
...
Since this returns a pointer, libssh2_session_last_errno() must be used
to get the actual error code and it wasn't that clear before.
2011-05-17 19:32:56 +02:00
Daniel Stenberg
821fb6ca71
timeout docs: mention they're added in 1.2.9
2011-05-13 22:47:22 +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
zl liu
5b66a5f38d
sftp_write_sliding: send the complete file
...
When reaching the end of file there can still be data left not sent.
2011-05-10 10:16:05 +02:00
Douglas Masterson
ce8f0b29a4
session_startup: init state properly
...
libssh2_session_startup() didn't set the state correctly so it could get
confused.
Fixes #218
2011-05-05 23:24:40 +02:00
Daniel Stenberg
26dad4590b
timeout: added man pages
2011-05-04 23:26:26 +02:00
Daniel Stenberg
4ed1e9d96b
BLOCK_ADJUST_ERRNO: move rc to right level
...
We can't declare the variable within the block and use it in the final
do-while() expression to be properly portable C89.
2011-05-04 23:06:13 +02:00
Matt Lilley
c5ec167881
adds a timeout to blocking calls
...
Fixes bug #160 as per Daniel's suggestion
Adds libssh2_session_set_timeout() and libssh2_session_get_timeout()
2011-05-04 22:58:21 +02:00
Daniel Stenberg
e652b4c7b8
SCP: fix incorrect error code
...
After an error occurs in libssh2_scp_recv() or libssh2_scp_send(), the
function libssh2_session_last_error() would return
LIBSSH2_ERROR_SOCKET_NONE on error.
Bug: http://trac.libssh2.org/ticket/216
Patch by: "littlesavage"
Fixes #216
2011-05-02 22:27:29 +02:00
Guenter Knauf
cc84d875eb
Updated default (recommended) dependency versions.
2011-04-19 14:21:49 +02:00
Daniel Stenberg
c01737e679
libssh2_session_block_directions: fix mistake
...
The last LIBSSH2_SESSION_BLOCK_INBOUND should be
LIBSSH2_SESSION_BLOCK_OUTBOUND
And I shortened the short description
Reported by: "drswinghead"
2011-04-17 12:40:43 +02:00
Daniel Stenberg
4825171919
msvcproj: added libs and debug stuff
...
Added libraries needed to link whether using openssl dynamically or
statically
Added LIBSSH2DEBUG define to debug versions to enable tracing
URL: http://trac.libssh2.org/ticket/215
Patch by: Mark Smith
2011-04-15 14:29:30 +02:00
Daniel Stenberg
d881e7e8ef
sftp_write: clean offsets on error
...
When an error has occurred on FXP_WRITE, we must make sure that the
offset, sent offset and acked counter are reset properly.
2011-04-13 13:59:50 +02:00
Daniel Stenberg
5dc5c80a39
example/.gitignore: ignore built binaries
2011-04-13 11:29:08 +02:00
Daniel Stenberg
9f477073bc
sftp_write: flush the packetlist on error
...
When an error occurs during write, flush the entire list of pending
outgoing SFTP packets.
2011-04-13 10:30:30 +02:00
Daniel Stenberg
78498e0588
keepalive: add first basic man pages
...
Someone on IRC pointed out that we don't have these documented so I
wrote up a first set based on the information in the wiki:
http://trac.libssh2.org/wiki/KeepAlive
2011-04-13 00:11:41 +02:00
Daniel Stenberg
0b0aa209f6
scp_write_nonblock.c: remove pointless check
...
libssh2_channel_write() cannot return a value that is larger than the
input length value
2011-04-12 10:46:47 +02:00
Mikhail Gusarov
aa07cdee9a
s/\.NF/.nf/ to fix wrong macro name caught by man --warnings
2011-04-09 16:25:19 +02:00
Daniel Stenberg
274fb2169c
version: bump to 1.2.9_dev
...
Also update the copyright year range to include 2011
2011-04-06 12:06:22 +02:00
Daniel Stenberg
f0a37bdadc
configure: fix $VERSION
...
Stop using the $VERSION variable as it seems to be magically used by
autoconfig itself and thus gets set to the value set in AC_INIT()
without us wanting that. $LIBSSH2VER is now the libssh2 version as
detected.
Reported by: Paul Howarth
Bug: http://www.libssh2.org/mail/libssh2-devel-archive-2011-04/0008.shtml
2011-04-06 12:03:11 +02:00
Daniel Stenberg
1249dd2272
maketgz: use git2news.pl by the correct name
2011-04-05 19:19:49 +02:00
Daniel Stenberg
5633bb4a3b
RELEASE-NOTES: synced with fabf1a45ee
libssh2-1.2.8
2011-04-04 13:32:58 +02:00
Daniel Stenberg
fabf1a45ee
NEWS: auto-generated from git
...
Starting now, the NEWS file is generated from git using the git2news.pl
script. This makes it always accurate and up-to-date, even for daily
snapshots etc.
2011-04-04 13:31:33 +02:00
Daniel Stenberg
2e352d3085
sftp_write: handle FXP_WRITE errors
...
When an sftp server returns an error back on write, make sure the
function bails out and returns the proper error.
2011-03-30 11:35:37 +02:00
Daniel Stenberg
8c9571b7ba
configure: stop using the deprecated AM_INIT_AUTOMAKE syntax
2011-03-15 11:34:41 +01:00
Alexander Lamaison
527c1b2def
Support unlimited number of host names in a single line of the known_hosts file.
...
Previously the code assumed either a single host name or a hostname,ip-address pair. However, according to the spec [1], there can be any number of comma separated host names or IP addresses.
[1] http://www.openbsd.org/cgi-bin/man.cgi?query=sshd&sektion=8
2011-03-13 00:29:39 +00:00
Daniel Stenberg
ec934f6dab
libssh2_knownhost_readfile.3: clarify return value
...
This function returns the number of parsed hosts on success, not just
zero as previously documented.
2011-02-26 10:57:56 +01:00
Peter Stuge
516fa7fdd9
Don't save allocated packet size until it has actually been allocated
...
The allocated packet size is internal state which needs to match reality
in order to avoid problems. This commit fixes #211 .
2011-02-26 05:21:01 +01:00