Daniel Stenberg
79acf60ae6
Added man page for libssh2_knownhost_addc()
...
Added mention in libssh2_knownhost_add() docs that
libssh2_knownhost_addc() is the preferred function now.
2010-03-24 15:39:46 +01:00
Daniel Stenberg
7810656564
at next soname bump remove libssh2_knownhost_add()
2010-03-24 15:39:13 +01:00
Daniel Stenberg
4bc10aa728
ignore TAGS ("make tags" makes them)
2010-03-24 15:38:44 +01:00
Daniel Stenberg
5512d0d593
fix memory leak
...
we must not assign the pointer a NULL since it keeps allocated
data and at least parts of an error string
2010-03-23 23:16:08 +01:00
Daniel Stenberg
05f9fb878e
fixed the pattern for avoiding the poll check
...
added some comments about known problems with poll on darwin
2010-03-23 22:50:53 +01:00
Daniel Stenberg
f314f3b5fd
avoid checking for poll on some systems
...
darwin and interix are known to have broken poll implementations
so we skip the check on those and thus have them use select
unconditionally
2010-03-23 22:00:31 +01:00
Daniel Stenberg
eb4407975c
ignore libssh2.dsp
2010-03-23 21:59:12 +01:00
Simon Josefsson
6d253324be
Fix logic in "on-the-fly" crypto init.
2010-03-23 21:09:32 +01:00
Simon Josefsson
aebcc45a37
Make sure keepalive is working even when poll is used.
2010-03-23 21:08:47 +01:00
Paul Querna
1decccbb52
Use poll when available on blocking API.
...
Signed-off-by: Simon Josefsson <simon@josefsson.org>
2010-03-23 20:48:58 +01:00
Peter Stuge
4c09324b02
Fix speling
2010-03-20 02:45:46 +01:00
Daniel Stenberg
6d4b1bbb45
fix NULL dereference when window adjusting a non-existing channel
...
Suyog Jadhav pointed out that when receiving a window adjust to
a channel not found, the code would reference a NULL pointer.
Now it will instead output a message about that fact.
2010-03-19 14:58:05 +01: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
Simon Josefsson
fa4017c613
Fix init/exit logic. Add self-test of it.
2010-03-19 09:27:19 +01:00
Daniel Stenberg
2e3f380ff2
fix typo
2010-03-19 09:23:47 +01:00
Simon Josefsson
6c3c3e1b49
Add man page for libssh2_init and libssh2_exit. Fix libssh2_exit prototype.
2010-03-19 09:21:48 +01:00
Simon Josefsson
55ede3b41b
Shorten constant a bit. More documentation.
2010-03-19 09:17:42 +01:00
Simon Josefsson
d00283927f
Fix namespace pollution.
2010-03-19 09:14:21 +01:00
Simon Josefsson
9ea5b0625e
Add global init/exit points, to do crypto initialization in one place.
...
By Lars Nordin.
2010-03-19 09:05:52 +01:00
Daniel Stenberg
1b1b4ac387
libssh2 is released under the Modifed BSD license, not GPL
2010-03-14 23:30:46 +01:00
Alexander Lamaison
9abf81de97
Add libssh2_knownhost_addc to handle comments.
...
Comments in known_hosts file were not handle properly. They were parsed as
part of the key causing key matching to return a mismatch if the entry had a
comment. This adds a new API function that takes an optional comment and
changes libssh2_knownhost_readline to parse the comment as pass it to the
new function.
Fixes #164 .
2010-03-14 19:52:00 +00:00
Alexander Lamaison
c585828d2b
Fix gettimeofday to compile with Visual C++ 6.
...
Reported by Steven Van Ingelgem.
2010-03-12 11:29:31 +00:00
Simon Josefsson
e54786cf2e
Add.
2010-03-10 18:50:29 +01:00
Simon Josefsson
4cfeade243
keepalive.c: Fix libssh2_error usage.
2010-03-10 13:16:32 +01:00
Simon Josefsson
60ff0a2ade
Fix typo in last commit.
2010-03-10 13:13:48 +01:00
Simon Josefsson
64c97765a5
Tidy up build option notice.
2010-03-10 13:13:19 +01:00
Simon Josefsson
ab66ff488b
Add entry about keep alive stuff.
2010-03-10 13:10:57 +01:00
Simon Josefsson
0d331aade1
Add keep-alive support.
2010-03-10 13:08:42 +01:00
Alexander Lamaison
69520e1564
Untabify.
2010-03-07 17:12:56 +00:00
Alexander Lamaison
f87f4ab836
Fix memory leak in libssh2_knownhost_add.
2010-03-07 16:20:07 +00:00
Daniel Stenberg
b3556c2e0c
change 'int' to 'libssh2_socket_t' in the public API for sockets
2010-03-06 19:51:58 +01:00
Daniel Stenberg
1f406feaa4
reduce code duplication and return underlying error better
2010-03-03 23:57:22 +01:00
Daniel Stenberg
c0436fc602
acknowledge when _libssh2_packet_requirev() returns error
...
when _libssh2_packet_requirev() returns an error when waiting for
SSH_MSG_USERAUTH_SUCCESS or SSH_MSG_USERAUTH_FAILURE, it is an
error and it should be treated as such
2010-03-03 23:44:54 +01:00
Daniel Stenberg
0034a83e4c
wrap long lines
2010-03-03 23:44:24 +01:00
Daniel Stenberg
f0f4ba92f0
polished the phrasing in two error strings
2010-03-03 23:37:58 +01:00
Daniel Stenberg
c29ba827e4
silence picky compiler warnings
2010-03-03 23:33:25 +01:00
Daniel Stenberg
a03e1b0457
silence picky compiler warnings
2010-03-03 23:32:56 +01:00
Daniel Stenberg
d4a768af4e
removed libssh2_error()'s forth argument
...
libssh2_error() no longer allocates a string and only accepts a const
error string. I also made a lot of functions use the construct of
return libssh2_error(...) instead of having one call to
libssh2_error() and then a separate return call. In several of those
cases I then also changed the former -1 return code to a more
detailed one - something that I think will not change behaviors
anywhere but it's worth keeping an eye open for any such.
2010-03-03 23:04:05 +01:00
Daniel Stenberg
d377c3065a
repaired --enable-debug
2010-03-03 22:51:15 +01:00
Simon Josefsson
51fcb11d60
Make ./configure output a summary of build options.
2010-03-01 17:01:47 +01:00
Daniel Stenberg
8bbc109e52
let the err_msg in the session struct be const too
2010-03-01 13:16:19 +01:00
Simon Josefsson
0ef84144ac
Revert #ifdef change that pulled in AES-CTR code when explicitly disabled.
2010-03-01 13:09:18 +01:00
Daniel Stenberg
ef27023eb9
fix #ifdefs
2010-03-01 11:42:38 +01:00
Daniel Stenberg
a9621548f8
make function match the new proto
2010-03-01 11:42:04 +01:00
Simon Josefsson
a925bdd5bb
Improve AES-CTR check.
2010-03-01 11:38:50 +01:00
Daniel Stenberg
3420e9858c
use const to silence a bazillion warnings
2010-03-01 11:05:40 +01:00
Simon Josefsson
2de339b2f7
Use AES-CTR from OpenSSL when available.
...
Reported by Lars Nordin <Lars.Nordin@SDlabs.se>.
2010-03-01 10:34:00 +01:00
Simon Josefsson
c46cbd46e2
Make it possible to disable DSA.
...
Patch from Lars Nordin <Lars.Nordin@SDlabs.se>.
2010-03-01 10:30:22 +01:00
Peter Stuge
16af813b81
Send and receive channel EOF before sending SSH_MSG_CHANNEL_CLOSE
...
Sending SSH_MSG_CHANNEL_CLOSE without channel EOF is explicitly allowed
in RFC 4254, but some non-conforming servers will hang or time out when
the channel is closed before EOF.
Other common clients send and receive EOF before closing, there are no
drawbacks, and some servers need it to work correctly.
2010-03-01 06:43:53 +01:00