aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-04-10cmake: Detect network function correctly on WindowsAndreas Schneider1-11/+17
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-04-10socket: Cleanup ssh_socket_close() code.Andreas Schneider1-5/+6
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-04-10bind: Correctly close sockets and invalidate them.Andreas Schneider2-13/+11
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-04-10cmake: Require cmake version 2.8.0Andreas Schneider4-334/+5
2015-04-10cmake: Check for sys/param.h header fileAndreas Schneider2-0/+3
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-04-10cmake: Check for arpa/inet.h header fileAndreas Schneider2-0/+3
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-04-10external: Use standard int typesAndreas Schneider4-84/+92
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-02messages: Don't leak memory after callback executionAndreas Schneider1-0/+19
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-04-02unittests: Fix memory leak in torture_pki_ed25519Andreas Schneider1-0/+2
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
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 compilersfreebsdAris 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>