aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-02-03Bump version to 0.7.4libssh-0.7.4Andreas Schneider2-2/+2
2017-02-03Update ChangeLogAndreas Schneider1-0/+5
2016-11-25session: Add missing ifdef that prevented Windows buildsTilo Eckert1-0/+2
Signed-off-by: Tilo Eckert <tilo.eckert@flam.de> Reviewed-by: Andreas Schneider <asn@cryptomilk.org> (cherry picked from commit 4f392ebc7ed202d1a9ca754c9aad19a449213621)
2016-11-07sftpserver: Fix SSH_FXP_FSTAT argumentsAndreas Schneider1-3/+2
Thanks to Игорь Коваленко <igor.a.kovalenko@gmail.com> Signed-off-by: Andreas Schneider <asn@cryptomilk.org> (cherry picked from commit 47d21b642094286fb22693cac75200e8e670ad78)
2016-11-07misc: Use simpler macros for htonll and ntohllAndreas Schneider3-26/+18
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> (cherry picked from commit 52efbc3a23fd62640177c96a14df76c42a1b462c)
2016-11-06cmake: Always check for strtoullAndreas Schneider1-1/+1
This fixes building with different compilers on Windows BUG: https://red.libssh.org/issues/225 Signed-off-by: Andreas Schneider <asn@cryptomilk.org> (cherry picked from commit fab85b495e1bb023017b8da916d679e52f39c3f4)
2016-11-05options: Fix log level documentationAndreas Schneider1-4/+4
BUG: https://red.libssh.org/issues/210 Signed-off-by: Andreas Schneider <asn@cryptomilk.org> (cherry picked from commit 801bc29494f7b0da377334a9e48eff698d53376d)
2016-11-05cmake: Correctly check for *snprintf functions on WindowsAndreas Schneider1-7/+12
BUG: https://red.libssh.org/issues/205 Signed-off-by: Andreas Schneider <asn@cryptomilk.org> (cherry picked from commit 1bf6c965e491e1851c8102dafa4a87c4deb085d9)
2016-11-05config: Fix build warningAndreas Schneider1-2/+4
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-10-22sftp: Fix memory leak in sftp_fstatPino Toscano1-1/+4
When parsing the result of a successful fstat call, make sure to free the resulting reply message. Signed-off-by: Pino Toscano <ptoscano@redhat.com> Reviewed-by: Andreas Schneider <asn@samba.org> (cherry picked from commit bc78383fac92069aafb043f645510a939c69b401)
2016-10-07sftp: Correctly check for EOF else keep spinning if there is no dataAndreas Schneider1-16/+17
This fixes an issue introduced with dbf72ffba2ad5b5694cd55aa1a7ca99053d20386 Signed-off-by: Andreas Schneider <asn@cryptomilk.org> (cherry picked from commit f561e6bcb361999088fe377f750dbacbc5e0102f)
2016-10-06gssapi: Use correct return code in ssh_gssapi_auth_mic()Andreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> (cherry picked from commit 83421c0e8cb30adfe9d459d74822a9bf7fdb99ba)
2016-10-06gssapi: Print minor stat in error logging functionAndreas Schneider1-17/+91
This also releases the memory allocated for the messages. Signed-off-by: Andreas Schneider <asn@cryptomilk.org> (cherry picked from commit 095733ed9cb96639dfcfa7b5e4f67ed57cec7a88)
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> (cherry picked from commit dbf72ffba2ad5b5694cd55aa1a7ca99053d20386)
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> (cherry picked from commit bc2db86d1c8a974cdfa412f9f6c250893ed9a66c)
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> (cherry picked from commit 4f7be0dbb21cb0dd68f4f2b0ad28e1b4fa474082)
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> (cherry picked from commit 1da5c94b44ea2610450aacda24d9789859942926)
2016-05-03client: Fix ssh_send_banner() to confirm with RFC 4253Andreas Schneider1-33/+62
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> (cherry picked from commit 3d1edffe770f157afaf543cad6f7256637af6088)
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> (cherry picked from commit cb52ed7b1253fab98f00e4dc078ad5db6d793021)
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> (cherry picked from commit 22799b107d628d1e66e865d7fd9683a72a37b30d)
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> (cherry picked from commit c3ce3d5cc347367aa9f3735aa957695973072702)
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> (cherry picked from commit c092101e019316975108e4afbe66802520ef510a)
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> (cherry picked from commit d7df4429ebb59f5cae20625084fd464794eac817)
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> (cherry picked from commit ffe8b98cc2ee975c461322f0f119a398d783bdf7)
2016-05-02auth1: Fix non-blocking SSHv1 authAndreas Schneider1-4/+11
BUG: https://red.libssh.org/issues/232 Thanks to Fengyu Gao. TODO: Add SSHv1 tests to our testsuite. Signed-off-by: Andreas Schneider <asn@cryptomilk.org> (cherry picked from commit 33ecaaac01eff3580d4f2832e541d520d9e116bb)
2016-05-02Update the READMEAndreas Schneider1-122/+3
(cherry picked from commit e8b28f978e249a3bb50fa60f28f5796a792be644)
2016-02-23Bump version to 0.7.3libssh-0.7.3Andreas Schneider2-3/+3
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-02-23Update ChangeLogAndreas Schneider1-0/+5
2016-02-23dh: Fix CVE-2016-0739Aris Adamantiadis1-5/+17
Due to a byte/bit confusion, the DH secret was too short. This file was completely reworked and will be commited in a future version. Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2016-02-23options: Fix documentation typoHani Benhabiles1-1/+1
Signed-off-by: Hani Benhabiles <hani@linux.com> Reviewed-by: Andreas Schneider <asn@samba.org> (cherry picked from commit f8bde7156ff22f4ef08582ed877190380657010d)
2016-02-23pki: Fixed documentation about return value.Younes Serraj1-1/+1
Documentation now is congruent with the code: - SSH_OK is returned on success, - SSH_ERROR is returned on error. Signed-off-by: Younes Serraj <younes.serraj@gmail.com> Reviewed-by: Andreas Schneider <asn@samba.org> (cherry picked from commit 66c6ae1a55b83cac8581be1d1a8906a62e327a34)
2015-12-30cmake: use check_symbol for (v)snprintfpouete1-2/+3
Updated how snprintf and vsnprintf are discovered by cmake. Visual studio 2015 now include it in the file stdio.h. More information here : https://msdn.microsoft.com/en-us/library/bb531344.aspx Reviewed-By: Aris Adamantiadis <aris@0xbadc0de.be>
2015-12-24CMake: include CheckIncludeFiles for calls to check_include_files.Sebastián Peyrott1-0/+1
2015-12-17Fix a bunch of -Wmaybe-uninitializedFabiano Fidêncio4-6/+6
Reviewed-By: Aris Adamantiadis <aris@0xbadc0de.be>
2015-11-10headers: fix missing mode_t (2nd)Dirk Neukirchen1-0/+1
Reviewed-By: Aris Adamantiadis <aris@0xbadc0de.be>
2015-11-10Revert "headers: fix missing mode_t"Aris Adamantiadis1-10/+0
I commited a patch file *headdesk* This reverts commit 378fcccc0ac914254151f69cebb47e9b2c06bd31.
2015-11-10headers: fix missing mode_tDirk Neukirchen1-0/+10
Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de> Reviewed-by: Aris Adamantiadis <aris@0xbadc0de.be>
2015-10-28Ignore all build and obj* directoriesAndreas Schneider2-3/+3
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-10-20agent: Fix agent auth on big endian machinesAndreas Schneider3-4/+24
BUG: https://red.libssh.org/issues/204 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-09-21crypto: fix potential memory leak in ECDHAris Adamantiadis1-0/+4
2015-09-16kex: Fix zlib compressionlibssh-0.7.2Andreas Schneider1-0/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> (cherry picked from commit 747e7d05db4ef4b9c2204c58dfb0125eb5394ba3)
2015-09-15Bump version to 0.7.2Andreas Schneider3-2/+10
2015-09-15cmake: Use tar.xz source package generatorAndreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> (cherry picked from commit 1f3a9105ffecb93123eed7a86bc74ac44faa6852)
2015-09-15kex: Prefer sha2 over sha1Andreas Schneider1-5/+4
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> (cherry picked from commit b0f22fde62c6db09493299830c650cbeee28cb0c)
2015-09-08cmake: Handle libssh threas library correctlyAndreas Schneider5-10/+32
This should fix the build on Windows and would not install pkg files. Signed-off-by: Andreas Schneider <asn@cryptomilk.org> (cherry picked from commit 5b586fdfecbe12f3f8e69099d809ca96c7cb978e)
2015-09-08bignum: Fix OpenSSL crash in SAFE_FREEMichael Wilder1-0/+4
Signed-off-by: Michael Wilder <wilder.michael@cimcor.com> Reviewed-by: Andreas Schneider <asn@samba.org> (cherry picked from commit 2f193b5cbb0c57160d3c590140bc04befccfbb32)
2015-08-18server: Fix return code check of ssh_buffer_pack()Andreas Schneider1-1/+1
Thanks to Andreas Gutschick <andreas.gutschick@mitel.com> Signed-off-by: Andreas Schneider <asn@cryptomilk.org> (cherry picked from commit 36d9b62f1fa5493a54a1e776422b032f66bc0936)
2015-08-18doc: Fix typos in sftp tutorialAndreas Schneider1-2/+2
Thanks to Anthony Baker <AnthonyBaker@fico.com> Signed-off-by: Andreas Schneider <asn@cryptomilk.org> (cherry picked from commit da4bebbe1e0384baec004641618bd981f50894ff)
2015-08-10tests: Add checks for ssh_key_is_private()Andreas Schneider1-0/+30
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> (cherry picked from commit d54a1ab7981644b8d6f8e1ea58e5ba997f0b0cd6)
2015-08-10pki: Fix return values of ssh_key_is_(public|private)Andreas Schneider1-2/+2
Thanks to Kevin Haake <khaake@red-cocoa.com> Signed-off-by: Andreas Schneider <asn@cryptomilk.org> (cherry picked from commit e1081796aff82812d877a43e240c779408a36171)