Dan Fandrich
6dfb2e3009
Better handle out of memory situations.
2007-04-12 21:51:57 +00:00
Dan Fandrich
164c6e9fc5
libssh2_channel_close now waits for a SSH_MSG_CHANNEL_CLOSE message
...
from the server as mandated by the RFC. Not doing so causes an OpenSSH
server to occasionally corrupt (truncate) short files uploaded by scp
(which manifests itself as a failure of test603 in the curl regression
test suite).
2007-04-12 21:24:36 +00:00
Simon Josefsson
0cf3845302
Replace #if !WIN32 with #if HAVE_SYS_SOCKET_H and HAVE_SYS_IOCTL_H
...
(AIX needs sys/ioctl.h). Reported by Michael Augustin
<maugustin-hi6Y0CQ0nG0@public.gmane.org>.
2007-04-11 07:22:33 +00:00
Simon Josefsson
149af707de
Use _libssh2_* namespace. Suggested by Guenter Knauf
...
<eflash-hi6Y0CQ0nG0@public.gmane.org>.
2007-04-05 20:36:17 +00:00
Simon Josefsson
e1bc0adcb1
Use Bruno's M4 macros to search for libgcrypt.
2007-04-05 10:23:54 +00:00
Simon Josefsson
01d7396160
Need sys/ioctl.h for FIONBIO, tiny patch from Michael Augustin
...
<maugustin@gmx.net>.
2007-04-05 09:58:25 +00:00
Simon Josefsson
43e377c08e
Fix AIX problem, based on patch from Michael Augustin <maugustin@gmx.net>.
2007-04-05 09:31:38 +00:00
Simon Josefsson
348b914ab7
Protect #include of zlib.h if we build without zlib.
2007-04-04 14:44:50 +00:00
Mikhail Gusarov
e7b3a2efc5
Enabled fragmenting SFTP requests to LIBSSH2_SFTP_PACKET_MAXLEN.
...
(Thanks to elifantu@mail.ru for the patch)
2007-04-01 08:04:32 +00:00
Mikhail Gusarov
56608a799f
Missing brace added
2007-04-01 07:40:49 +00:00
Mikhail Gusarov
f29f85f482
libssh2_sftp_read should not return error if it receives SSH_FX_EOF code in
...
SSH_FXP_STATUS packet.
(Thanks to elifantu@mail.ru for the patch)
2007-04-01 06:23:49 +00:00
Daniel Stenberg
2a48f54937
Callers should be using libssh2_packet_require_ex instead of
...
libssh2_packet_ask_ex. The purpose of these calls is to clear out any packets
that may have arrived already, so there's no need to poll for more.
(Dan Fandrich)
2007-03-31 20:28:29 +00:00
Simon Josefsson
53d6597569
Need -no-undefined for AIX/cygwin/mingw32 etc. Reported by "Yang Tse"
...
<yangsita@gmail.com>.
2007-03-29 08:10:22 +00:00
Simon Josefsson
db2a895ecf
(libssh2_poll_channel_write, libssh2_poll_listener_queued): Mark as
...
static. Remove unneeded prototypes. Break Solaris 10 builds
according to "Heiko Jansen" <jansen@hbz-nrw.de>.
2007-03-27 13:03:46 +00:00
Simon Josefsson
94a71fe995
(libssh2_packet_x11_open, libssh2_packet_queue_listener): Mark as
...
static functions. Remove unnecessary prototypes. Breaks Solaris 10
builds according to "Heiko Jansen" <jansen@hbz-nrw.de>.
2007-03-27 13:02:01 +00:00
Daniel Stenberg
ba9f0b2ce6
Dan Fandrich fixed another memory leak, this time in the OpenSSL interface
...
code:
It's not clear to me whether all the BN_news in _libssh2_rsa_new need to
be cleaned up, too. The OpenSSL docs for RSA_free implies that you don't
need to, and valgrind doesn't complain, so it's probably OK as is.
2007-03-15 21:37:43 +00:00
Daniel Stenberg
b553f1087e
fixed a memory leak in the packet handling (Dan Fandrich)
2007-03-15 20:56:45 +00:00
Daniel Stenberg
75ceed5776
Dan Fandrich patch:
...
1 - let libssh2 compile with OpenSSL 0.9.6b. This is due to 'crypt' is found
in one of its header files and EVP_MAX_BLOCK_LENGTH not being found.
2 - The EXEEXT patch is because automake 1.7 doesn't support it, and recent
automakes add it automatically
2007-03-14 21:59:12 +00:00
Daniel Stenberg
7c115d350c
Lucas Newman found and fixed a problem where libssh2_packet_read() could "lose"
...
bytes when it read data from the network that was an unaligned number of bytes
compared to the blocksize.
2007-02-14 20:50:43 +00:00
Daniel Stenberg
972d6d8bd4
removed unused variable
2007-02-07 21:42:45 +00:00
Daniel Stenberg
fee0239211
setting sockets non-blocking using more portable code and configure macros
...
from the libcurl project (written by me)
2007-02-07 21:39:17 +00:00
Daniel Stenberg
e7181a8c36
Netware and Windows fixes by Guenter Knauf
2007-02-07 21:21:06 +00:00
Simon Josefsson
f6e26916ac
Remove unused uses of -lm and math.h.
2007-02-04 13:16:17 +00:00
Daniel Stenberg
4f1cfb20a9
1 - new public function libssh2_trace() that enables tracing/debug output on
...
various stuff if libssh2 was built with debug. If built without debug, the
function does nothing.
2 - configure --enable-debug is now enough to build a debug version (including
picky compiler options)
3 - internally, we no longer need/use #ifdef/#endif around all uses of the
_libssh2_debug() function/macro.
The scp.c example is the first application to test this new debug logging.
2007-02-02 23:23:36 +00:00
Daniel Stenberg
be4c3f59d4
bump the version-info due to the changes in the API we're working on and due
...
to the fact that there's release of the previous CVS-state shipped in Debian
(and possibly others distros).
2007-02-02 22:09:30 +00:00
Daniel Stenberg
9d55db6501
Adding src/transport.c for the SECSH transport layer read/write in a non-
...
blocking way. The channel code is now responsible for enabling/disabling
blocking status and to work with it.
I've also modified indenting and fixed compiler warnings at places, and
added a bunch of new examples in example/simple that I've used to verify that
the code still runs like before.
libssh2_channel_{read|write}nb_ex() and libssh2_sftp_{read|write}nb() are the
four new functions that supposedly work non-blocking.
2007-02-02 16:21:20 +00:00
Simon Josefsson
20527d9688
Mind your p's and q's! RSA authentication now works.
2007-02-02 11:18:34 +00:00
Daniel Stenberg
a139ab0b45
fix compiler warnings
2007-01-23 21:36:40 +00:00
Simon Josefsson
f1e7eb7ae8
Fix RSA private key reading (still not working).
2007-01-23 15:12:41 +00:00
Simon Josefsson
b790cabf6a
Fix warnings.
2007-01-23 13:55:11 +00:00
Simon Josefsson
d2be40421a
Fix warnings.
2007-01-23 12:44:14 +00:00
Simon Josefsson
b1d855d1ac
Fix warnings.
2007-01-23 12:44:14 +00:00
Simon Josefsson
1826e7365d
Fix warnings.
2007-01-23 12:32:06 +00:00
Simon Josefsson
7f9ea39a5d
Fix mem leak.
2007-01-23 12:26:36 +00:00
Simon Josefsson
6cf4420264
Fix mem leak.
2007-01-23 12:18:50 +00:00
Simon Josefsson
bfb71f3075
Need more #include's.
2007-01-23 11:53:27 +00:00
Simon Josefsson
1f232d69ed
Fix warnings.
2007-01-23 11:52:23 +00:00
Simon Josefsson
f252d350ec
Fix warnings.
2007-01-23 11:52:08 +00:00
Simon Josefsson
4c2c468b08
Remove OpenSSL #include.
2007-01-23 11:29:13 +00:00
Simon Josefsson
a86a4e0cfc
Fix mem leak.
2007-01-23 11:28:05 +00:00
Simon Josefsson
c9d40afa14
Abstract bignum API.
2007-01-23 10:29:55 +00:00
Simon Josefsson
51b9ff0f16
Abstract RSA/DSA private key file reading and RSA/DSA signing, and
...
implement them in openssl/libgcrypt layer.
2007-01-23 08:22:54 +00:00
Simon Josefsson
0d9a7e3c2e
Add prototypes for pem.c functions.
2007-01-23 08:14:14 +00:00
Simon Josefsson
75115045ae
Add pem.c.
2007-01-23 08:13:32 +00:00
Simon Josefsson
be984707e2
Add. Functions for reading PEM files and decoding ASN.1.
2007-01-23 08:13:10 +00:00
Daniel Stenberg
2afd706ca1
please picky compiler
2007-01-22 21:40:44 +00:00
Simon Josefsson
fe979040a2
Remove non-iovec based RSA/DSA signing (not used, and DSA code even buggy).
2007-01-22 14:15:38 +00:00
Daniel Stenberg
0fab9e9614
fix warning for memcpy()
2007-01-19 21:32:31 +00:00
Simon Josefsson
576d37dafd
Indent.
...
Fix mem leak on errors.
2007-01-18 11:37:32 +00:00
Simon Josefsson
a0eda7365e
Remove openssl #include.
...
Protect use of 3DES.
Reorder definitions to match preference order.
2007-01-18 11:32:20 +00:00