aboutsummaryrefslogtreecommitdiff
path: root/include/libssh
AgeCommit message (Collapse)AuthorFilesLines
2018-10-30include: Add stddef.h for size_tv0-7Andreas Schneider1-0/+2
Fixes T119 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-10-29Bump version to 0.7.7libssh-0.7.7Andreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-10-17misc: Add strndup implementation if not provides by the OSAndreas Schneider1-0/+4
Fixes T112 Signed-off-by: Andreas Schneider <asn@cryptomilk.org> (cherry picked from commit 247983e9820fd264cb5a59c14cc12846c028bd08)
2018-10-16Bump version to 0.7.6libssh-0.7.6Andreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-10-09CVE-2018-10933: Introduced packet filteringAnderson Toshiyuki Sasaki1-0/+6
The packet filter checks required states for the incoming packets and reject them if they arrived in the wrong state. Fixes T101 Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
2018-10-09CVE-2018-10933: Introduce SSH_AUTH_STATE_AUTH_NONE_SENTAnderson Toshiyuki Sasaki1-0/+2
The introduced auth state allows to identify when a request without authentication information was sent. Fixes T101 Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
2018-10-09CVE-2018-10933: Introduce SSH_AUTH_STATE_PASSWORD_AUTH_SENTAnderson Toshiyuki Sasaki1-0/+2
The introduced auth state allows to identify when authentication using password was tried. Fixes T101 Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
2018-10-09CVE-2018-10933: Introduced new auth statesAnderson Toshiyuki Sasaki1-0/+4
Introduced the states SSH_AUTH_STATE_PUBKEY_OFFER_SENT and SSH_AUTH_STATE_PUBKEY_AUTH_SENT to know when SSH2_MSG_USERAUTH_PK_OK and SSH2_MSG_USERAUTH_SUCCESS should be expected. Fixes T101 Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
2018-10-09dh: Add ssh_get_fingerprint_hash()Andreas Schneider1-0/+3
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> (cherry picked from commit bbed139ecab26cb46b0bb3a21fa4cd2a4f12dadd)
2018-10-09dh: Add ssh_print_hash() function which can deal with sha256Jan-Niklas Burfeind1-0/+1
Signed-off-by: Jan-Niklas Burfeind <libssh@aiyionpri.me> Reviewed-by: Andreas Schneider <asn@cryptomilk.org> (cherry picked from commit f32cb706752d8dc35ad53a64f51e432cc0bc41cd)
2018-10-09dh: Add SSH_PUBLICKEY_HASH_SHA256 to ssh_get_publickey_hash()Jan-Niklas Burfeind1-1/+2
Signed-off-by: Jan-Niklas Burfeind <libssh@aiyionpri.me> Reviewed-by: Andreas Schneider <asn@cryptomilk.org> (cherry picked from commit 1499b38aef17beac8b438522535daf428600d529)
2017-04-13Bump version to 0.7.5libssh-0.7.5Andreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2017-04-13buffer: Create ssh_buffer_validate_length()Andreas Schneider1-0/+2
This functions allows if a given length can be obtained from the buffer. Signed-off-by: Andreas Schneider <asn@cryptomilk.org> (cherry picked from commit c165c396de879b24f19c3a942a32795a8be351d7)
2017-02-03Bump version to 0.7.4libssh-0.7.4Andreas Schneider1-1/+1
2016-11-07misc: Use simpler macros for htonll and ntohllAndreas Schneider2-9/+18
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> (cherry picked from commit 52efbc3a23fd62640177c96a14df76c42a1b462c)
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-02auth: Cleanup memory leak when using SSH agentStef Walter1-0/+2
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-02-23Bump version to 0.7.3libssh-0.7.3Andreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-11-10headers: fix missing mode_t (2nd)Dirk Neukirchen1-0/+1
Reviewed-By: Aris Adamantiadis <aris@0xbadc0de.be>
2015-10-20agent: Fix agent auth on big endian machinesAndreas Schneider1-0/+10
BUG: https://red.libssh.org/issues/204 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-09-15Bump version to 0.7.2Andreas Schneider1-1/+1
2015-06-30include: Add stdarg.h so we can check for va_copy macroAndreas Schneider1-0/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-06-30Bump version to 0.7.1libssh-0.7.1Andreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-06-29agent: Add ssh_set_agent_socketPeter Volpe1-0/+1
Allow callers to specify their own socket for an ssh agent. Signed-off-by: Peter Volpe <pvolpe@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org> (cherry picked from commit 7aeba71a92d5a2dcb606e94f95516b975242586c)
2015-06-24include: Add support for older MSVC versionsAndreas Schneider1-0/+4
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> (cherry picked from commit 30a7229fc5f147c9f39abfa9272546773f58678c)
2015-05-06Bump version to 0.7.0Andreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-05-05include: Fix variadic macro issues with MSVCAndreas Schneider1-1/+9
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-04-10bind: Correctly close sockets and invalidate them.Andreas Schneider1-0/+6
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-04-10external: Use standard int typesAndreas Schneider2-17/+23
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-04-02include: Do not make x11 variables constAndreas Schneider1-2/+2
We allocate them and also free them after the callback has been executed. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-04-02cmake: Detect __func__ and __FUNCTION__ during configure stepAndreas Schneider2-3/+7
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-04-02include: We should use __func__ which is C99Andreas Schneider1-8/+6
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-08buffer: buffer_pack & unpack on non-gnu compilersAris Adamantiadis1-0/+5
2015-02-02buffer: buffer: Improve argument checking of in ssh_buffer_pack()Andreas Schneider1-3/+9
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Aris Adamantiadis <aris@0xbadc0de.be>
2015-02-02buffer: Improve argument checking in ssh_buffer_pack()Andreas Schneider2-3/+36
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Aris Adamantiadis <aris@0xbadc0de.be>
2015-02-02ed25519: ADd OpenSSH encrypted container importAris Adamantiadis1-0/+1
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-02external: Add OpenSSH bcrypt and blowfish implementationAris Adamantiadis2-0/+92
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-02server: Add support for ed25519 keys in the server.Aris Adamantiadis2-1/+3
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-02ed25519: Add support to export OpenSSH container keysAris Adamantiadis1-0/+2
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-02ed25519: Add support o import OpenSSH container keysAris Adamantiadis1-0/+8
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-02pki.h: Replace tabs with spacesAris Adamantiadis1-2/+2
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-01-20cmake: Add libsshpp.hpp to the distributed headers list.Léo Peltier1-0/+1
BUG: https://red.libssh.org/issues/163 Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2014-12-05session: add getter for kexalgoJon Simons1-0/+1
Signed-off-by: Jon Simons <jon@jonsimons.org> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2014-12-05pki_crypto.c: plug ecdsa_sig->[r,s] bignum leaksJon Simons1-0/+1
Per ecdsa(3ssl), ECDSA_SIG_new does allocate its 'r' and 's' bignum fields. Fix a bug where the initial 'r' and 's' bignums were being overwritten with newly-allocated bignums, resulting in a memory leak. BUG: https://red.libssh.org/issues/175 Signed-off-by: Jon Simons <jon@jonsimons.org> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2014-09-07ed25519: Generate, sign and verify keys.Aris2-0/+19
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2014-09-07crypto: Add ed25519 implementation from OpenSSH.Aris Adamantiadis6-1/+267
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2014-09-07buffer: Add a secure buffer mechanism to avoid memory spillsAris Adamantiadis1-0/+2
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2014-08-06bignums: detach bignum-related functions from dh.c.Aris Adamantiadis2-4/+32
Reviewed-by: Andreas Schneider <asn@samba.org>
2014-08-06crypto: fix secure burning, structure members namingAris Adamantiadis1-2/+2
Reviewed-by: Andreas Schneider <asn@samba.org>
2014-08-06buffer: add a hidden canary to detect format errorsAris Adamantiadis1-2/+7
Reviewed-by: Andreas Schneider <asn@samba.org>