aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-09-09dh-gex: WIPgex_aris_osxAris Adamantiadis4-1/+164
2016-09-09TOREMOVE: comment out DSA in pkd that's disabled in newer opensshAris Adamantiadis1-16/+16
2016-09-09dh: generalize group usageAris Adamantiadis4-16/+86
2016-09-09libcrypto: detect non matching headers/shared libAris Adamantiadis2-15/+29
It took me a while to understand why some test cases were not always working, and figure out I wasn't linked with the right libcrypto.
2016-09-09dh: big cleanupAris Adamantiadis5-297/+144
2016-09-09buffer_unpack: support bignumsAris Adamantiadis1-0/+15
2016-09-09bignum: make bignum_free saferAris Adamantiadis8-30/+34
2016-09-09tests: test for dh-group14Aris Adamantiadis1-0/+23
2016-09-09dh: move unrelated functions out of dh.cAris Adamantiadis6-619/+612
2016-09-09bignum: harmonize gcrypt and libcrypto usageAris Adamantiadis9-127/+35
2016-09-09crypto: split init and finalize functionsAris Adamantiadis8-48/+82
2016-09-09bignum: harmonize ssh_get_randomAris Adamantiadis4-32/+20
2016-09-09kex: use runtime callbacks (server)Aris Adamantiadis8-159/+241
2016-09-09kex: use runtime callbacks (client)Aris Adamantiadis8-59/+94
2016-09-09kex: log negotiated methodsAris Adamantiadis1-1/+12
2016-09-09packets: allow removal of callbacksAris Adamantiadis2-0/+12
2016-09-09tests: fix buffer overflow in testcaseAris Adamantiadis1-1/+1
2016-09-09sftp: ensure sftp_packet_read recognizes channel EOF to avoid infinite loopJeremy Cross1-1/+1
Signed-off-by: Jeremy Cross <jcross@bomgar.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2016-05-10sftpserver: Fix SSH_FXP_FSTAT argumentsAndreas Schneider1-3/+2
Thanks to Игорь Коваленко <igor.a.kovalenko@gmail.com> Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-05-09tests: Try to fix the x11 testAndreas Schneider1-0/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-05-09tests: Fix buffer test without NARG macro supportAndreas Schneider1-0/+3
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-05-04sftp: Use calloc() instead of malloc()/memset()Andreas Schneider1-26/+14
This is calloc() is faster then calling memset(). Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-05-04config: Fix build warningsAndreas Schneider1-2/+4
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-05-04examples: Fix endif()Andreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-05-03Make "Host" pattern list handling consistent with OpenSSHTravers Carter1-10/+14
https://red.libssh.org/issues/187 Signed-off-by: Travers Carter <tcarter@noggin.com.au> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2016-05-03tests: Improve the torture_request_env testAndreas Schneider1-3/+3
This still doesn't work on FreeBSD Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-05-03examples: Fix building on FreeBSDAndreas Schneider1-2/+5
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-05-03torture: Fix a warningAndreas Schneider1-47/+47
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-05-03priv: Fix client banner specification for libsshAndreas Schneider1-2/+2
BUG: https://red.libssh.org/issues/231 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-05-03client: If SSHv1 is disabled send the banner immediatelyAndreas Schneider1-1/+9
This saves a round-trip with SSHv2 connecting to the server. See RFC 4253 section 5.2 (New Client, Old Server). Thanks to Yang Yubo <yang@yangyubo.com> for the suggestion. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-05-03client: Fix ssh_send_banner() to confirm with RFC 4253Andreas Schneider1-33/+62
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-05-03client: Fix maximum banner lengthAndreas Schneider1-1/+2
According to RFC 4253 the max banner length is 255. Thanks to Saju Panikulam <spanikulam@ipswitch.com> for the report. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-05-03client: Reformat callback_receive_banner()Andreas Schneider1-49/+63
The function is hard to read as the indentation is not correctly applied. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-05-03client: Receive the banner correctlyKen Reister1-0/+7
Comply with RFC 4253 compliance section 4.2. Allow data other than "SSH-" to be sent across prior to the actual version striong. Signed-off-by: Ken Reister <reister.kenneth@CIMCOR.COM> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2016-05-02sockets: Fix callback registration bugAris Adamantiadis2-3/+3
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2016-05-02packet: Improve logging outputAris Adamantiadis2-0/+8
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2016-05-02sample: Migrate client to connector APIAris Adamantiadis1-203/+33
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2016-05-02connector: Implement ssh_connector_except()Aris Adamantiadis6-5/+698
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2016-05-02channels: Move ssh_channel_write_stderr out of server-onlyAris Adamantiadis3-4/+5
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2016-05-02callbacks: Implement list of callbacks for channelsAris Adamantiadis6-163/+283
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2016-05-02tests: Add test for ssh_callbacks_iterate()Aris Adamantiadis1-1/+52
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2016-05-02callback: Add macro to iterate callbacksAris Adamantiadis1-0/+37
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2016-05-02tests: Add unit test for ssh_callbacks_execute_listAris Adamantiadis1-0/+86
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2016-05-02callbacks: Add macro for callbacks execute listAris Adamantiadis1-0/+28
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2016-05-02packets: Handle flow control callbacksAris Adamantiadis2-1/+45
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2016-05-02examples: Do not usre deprecated functionsAndreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-05-02events: Add functions for poll objectsAris Adamantiadis2-0/+29
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2016-05-02Add id_ed25519 to the default identity listKohei Suzuki1-0/+9
Signed-off-by: Kohei Suzuki <eagletmt@gmail.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2016-05-02channels: Bugfix for a possible invalid pointer usage (channel->session) in ↵David Kedves1-4/+4
various places BUG: https://red.libssh.org/issues/230 Signed-off-by: David Kedves <kedazo@severalnines.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2016-05-02auth: Cleanup memory leak when using SSH agentStef Walter3-7/+25
In Cockpit we've seen this memory leak: at 0x4C2A9C7: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) by 0x5B76B03: ssh_userauth_agent (auth.c:778) by 0x40DD5A: cockpit_ssh_authenticate (cockpitsshtransport.c:327) BUG: https://red.libssh.org/issues/208 Signed-off-by: Stef Walter <stefw@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>