aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-04-02poll: Fix compilation with struct ssh_timestampAndreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-04-02cmake: Detect __func__ and __FUNCTION__ during configure stepAndreas Schneider4-3/+25
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-04-02include: We should use __func__ which is C99Andreas Schneider2-9/+7
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-23Locally restart ssh_poll() upon EINTR.Seb Boving1-1/+7
BUG: https://red.libssh.org/issues/186 Reviewed-by: Aris Adamantiadis <aris@0xbadc0de.be> Signed-off-by: Sebastien Boving <seb@google.com>
2015-02-23Sending EOF on Socket that received a Broken Pipe makes call to poll to hangxjoaalm1-9/+18
Reviewed-by: Aris Adamantiadis <aris@0xbadc0de.be> Signed-off-by: Joao Pedro Almeida Pereira <joao.almeida@blue-tc.com>
2015-02-20cmake: Drop reports via https only.Andreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-14torture: fix includes for freebsd10Aris Adamantiadis1-1/+3
2015-02-12tests: torture-misc: check for NULL return codesAris Adamantiadis1-3/+17
Use the LOGNAME environment variable if USER is not set, as it sometimes happens in cron jobs.
2015-02-12tests: workaround for compiling with older cmockaAris Adamantiadis1-0/+6
2015-02-08buffer: buffer_pack & unpack on non-gnu compilersAris Adamantiadis2-6/+19
2015-02-08buffer: detect compilers not supporting __VA_ARGS__Aris Adamantiadis2-0/+13
2015-02-03buffer: fix use-before-nullcheck (coverity #1267979)Aris Adamantiadis1-2/+0
Additionally, the function call was already existing after the NULL check
2015-02-03Revert "pki_gcrypt: fix warnings for SSH_KEYTYPE_ED25519"Aris Adamantiadis1-9/+0
This reverts commit 10f71c67690cf3c0e1b6a733c3641407df2224e2. Commit was redundant with ed25519 branch
2015-02-02tests: allow conditionnal execution on patternAris Adamantiadis25-26/+88
Option can be used to filter out irrelevant tests usage: ./torture_pki '*ed25519' Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-02base64: Use secure buffersAris Adamantiadis1-0/+2
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-02buffer: Abort if the canary is not intact in ssh_buffer_unpack()Andreas Schneider1-2/+2
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Aris Adamantiadis <aris@0xbadc0de.be>
2015-02-02buffer: buffer: Improve argument checking of in ssh_buffer_pack()Andreas Schneider2-8/+37
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Aris Adamantiadis <aris@0xbadc0de.be>
2015-02-02buffer: Abort if the canary is not intact in ssh_buffer_unpack()Andreas Schneider1-4/+4
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 Schneider3-8/+62
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Aris Adamantiadis <aris@0xbadc0de.be>
2015-02-02Move all 3rd-party C files to src/external/Aris Adamantiadis7-97/+96
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-02ed25519: Add test for signatures and verificationAris Adamantiadis2-0/+122
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-02tests: Add ed25519 encrypted keys exportAris Adamantiadis1-0/+29
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-02ed25519: Add support for OpenSSH encrypted container exportAris Adamantiadis1-6/+153
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-02tests: Add ed25519 encrypted keys importAris Adamantiadis2-1/+35
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-02ed25519: ADd OpenSSH encrypted container importAris Adamantiadis3-8/+169
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-02external: Add OpenSSH bcrypt and blowfish implementationAris Adamantiadis5-0/+960
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 Adamantiadis6-3/+32
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-02kex: Add support for ed25519 on client connections.Aris Adamantiadis1-4/+12
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-02tests: Add ed25519 OpenSSH key savingAris Adamantiadis1-4/+47
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 Adamantiadis3-10/+175
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-02tests: Add ed25519 OpenSSH key loading and operationsAris Adamantiadis2-2/+206
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-02libgcrypt: Make the PEM parser ed25519 awareAris Adamantiadis1-0/+54
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-02libcrypto: Make the PEM parser ed25519 awareAris Adamantiadis1-0/+6
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-02ed25519: Add support o import OpenSSH container keysAris Adamantiadis4-10/+286
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-26kex: disable des-cbc-ssh1 by defaultAris Adamantiadis1-4/+6
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-01-21packet_cb: Add misssing include for ntohl().Andreas Schneider1-0/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-01-21tests: Fix torture_server_x11().Andreas Schneider3-4/+30
2015-01-20tests: Add torture_server_x11 test.Alan Dunn2-0/+214
torture_server_x11 tests whether a libssh server can correctly parse an X11 request. Signed-off-by: Alan Dunn <amdunn@gmail.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-01-20tests: Add ssh server setup functionalityAlan Dunn2-0/+49
Add the ability to generate a keypair (RSA, but tests that focus on what occurs over a connection may well not care) and an ssh_bind easily. Signed-off-by: Alan Dunn <amdunn@gmail.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-01-20tests: Add port option to torture_ssh_sessionAlan Dunn6-4/+12
Signed-off-by: Alan Dunn <amdunn@gmail.com> 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>
2015-01-20pki: Make sure sig is not used unintialized.Andreas Schneider1-1/+1
BUG: https://red.libssh.org/issues/167 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-01-20examples: Use safer names for stdin, stdout, stderrWilliam Orr1-20/+20
BUG: https://red.libssh.org/issues/168 On some platforms, like OpenBSD, stdin and friends are macros which break compilation of this struct. I've fixed these names such that it compiles and runs cleanly on OpenBSD Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-01-20threads: Fix building with POSIX threads in MinGW.Andreas Schneider1-1/+1
BUG: https://red.libssh.org/issues/181 Originally written by Patrick von Reth <vonreth () kde ! org>. This patch is part of the larger patch: https://projects.kde.org/projects/kdesupport/emerge/repository/revisions/master/changes/portage/win32libs/libssh/0002-add-a-way-to-test-ssh-connections-on-windows.patch MinGW (in particular, the MinGW-w64 fork) can use either posix threads or win32 threads. This patch fixes the MinGW build when using posix threads. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-01-20channels1: Fix pty request stateYanis Kurganov1-1/+2
Signed-off-by: Yanis Kurganov <YKurganov@ptsecurity.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-01-20Update README.CodingStyleAndreas Schneider2-59/+354
2015-01-14connect: Fix a memory leak.Andreas Schneider1-0/+1
CID: #1238618 Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Aris Adamantiadis <aris@0xbadc0de.be>
2015-01-14sftp: Fix a possible integer overflow.Andreas Schneider1-2/+6
CID: #1238630 Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Aris Adamantiadis <aris@0xbadc0de.be>
2015-01-14sftp: Use a declared variable for data len.Andreas Schneider1-6/+7
CID: #1238632 Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Aris Adamantiadis <aris@0xbadc0de.be>