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
4c2c468b08
Remove OpenSSL #include.
2007-01-23 11:29:13 +00:00
Simon Josefsson
c9d40afa14
Abstract bignum API.
2007-01-23 10:29:55 +00:00
Simon Josefsson
10efccbb83
Align with new _LIBSSH2_CRYPT_METHOD API, for libgcrypt support.
2007-01-18 11:21:39 +00:00
Simon Josefsson
6873ada0b7
Use LIBSSH2_* instead of OPENSSL_NO_* (should ultimately be possible
...
to chose by ./configure?).
2007-01-17 14:41:06 +00:00
Simon Josefsson
79761a6455
Use generic APIs for (HMAC-)MD5/SHA1 and RNG, and implement them via OpenSSL/libgcrypt.
2007-01-15 21:12:00 +00:00
Simon Josefsson
677005375b
Remove unfinished OPENSSL_NO_SHA ifdef stuff, since SHA-1 is required for libssh2 to work.
2007-01-10 17:29:46 +00:00
Daniel Stenberg
036bb51421
fix compiler warnings
2006-12-21 14:20:20 +00:00
Simon Josefsson
75b5e06773
Fix indentation.
2006-12-09 09:06:06 +00:00
Simon Josefsson
14b9deef24
Move symmetric OpenSSL EVP crypto calls to crypt.c.
2006-12-07 15:44:07 +00:00
Sara Golemon
adee5e5653
Don't wait for KEX_INIT prior to sending our own packet.
...
Watch out for bad KEX_INIT guesses and burn packets if necessary.
2006-06-22 18:45:29 +00:00
Sara Golemon
4d7726c551
Plug leaks caused by not using OpenSSL's EVP interface correctly
2006-04-06 21:50:37 +00:00
Sara Golemon
c45992da55
Bump copyright year
2006-03-02 01:10:52 +00:00
Sara Golemon
01de39e585
Fix generation of 'e' portion of Diffie-Hellman keyset.
2005-07-11 15:56:09 +00:00
Mikhail Gusarov
b6d13ebe8a
Strictening function prototypes: char* -> const char* where applicable
2005-06-18 10:41:59 +00:00
Sara Golemon
8d90bbfc28
Fix segfault when client/host can't agree on hostkey/crypt/mac/comp
2005-05-16 17:16:25 +00:00
Sara Golemon
ebfbd22e59
Add debugging hooks for development diagnostics
2005-05-11 05:11:31 +00:00
Sara Golemon
ef7496b29a
Update copyright year
2005-02-18 16:32:02 +00:00
Sara Golemon
a05bf84ecf
Collapse state flags into single bitmask attribute
2005-02-03 05:41:35 +00:00
Sara Golemon
c006dd4350
Added support for MAC methods: hmac-md5 and hmac-md5-96
...
key_len should not have been in KEX_METHOD,
it's dependent on MAC method, not KEX method.
This is why the MD5 MACs were borked initially,
md5 has a key_len of 16, not 20.
2004-12-31 00:55:52 +00:00
Sara Golemon
d86bcab2d2
Add error codes to session_method_pref()
2004-12-30 20:05:53 +00:00
Sara Golemon
596b62c027
use actual random data with KEX_INIT cookie and packet padding
2004-12-27 20:38:44 +00:00
Sara Golemon
aa8b8afe4f
Update contact info with new domain
2004-12-22 20:56:06 +00:00
Sara Golemon
566bea77ea
Add libssh2_session_method_pref() and libssh2_session_methods().
...
Specify methods to be used and retreive what methods were negotiated.
2004-12-09 22:10:07 +00:00
Sara Golemon
7a5ffc8cee
Initial revision
2004-12-07 21:17:20 +00:00