summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* buffer: do not use ssh_buffer_get_rest_len()Fabiano Fidêncio2015-10-121-11/+11
| | | | | | | | As ssh_buffer_get_len() actually calls ssh_buffer_get_rest_len(), let's just use the first one. This is a preparatory step for removing ssh_buffer_get_rest_len(). Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
* buffer: rename ssh_buffer_get_rest() to ssh_buffer_get()Fabiano Fidêncio2015-10-121-6/+6
| | | | Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
* tests: Fix warning about expected format for printfFabiano Fidêncio2015-10-121-2/+2
| | | | | | | | | | | | | | | | | /home/ffidenci/src/upstream/libssh/tests/benchmarks/bench_scp.c: In function ‘benchmarks_scp_down’: /home/ffidenci/src/upstream/libssh/tests/benchmarks/bench_scp.c:112:14: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘size_t {aka long unsigned int}’ [-Wformat=] printf("Only %d bytes available (on %lu requested).\n",size,bytes); ^ /home/ffidenci/src/upstream/libssh/tests/benchmarks/bench_scp.c:116:14: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘size_t {aka long unsigned int}’ [-Wformat=] printf("File is %d bytes (on %lu requested). Will cut the end\n" ,size,bytes); Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
* cleanup: use ssh_ prefix in the buffer (non-static) functionsFabiano Fidêncio2015-10-121-35/+35
| | | | | | | Having "ssh_" prefix in the functions' name will avoid possible clashes when compiling libssh statically. Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
* cleanup: use ssh_ prefix in the agent (non-static) functionsFabiano Fidêncio2015-10-121-2/+2
| | | | | | | Having "ssh_" prefix in the functions' name will avoid possible clashes when compiling libssh statically. Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
* WIP torture_authAndreas Schneider2015-10-123-205/+175
|
* tests: Convert torture_connect to a cwrap testAndreas Schneider2015-10-123-26/+79
|
* torture: Add torture_teardown_sshd_server().Andreas Schneider2015-10-122-0/+45
|
* torture: Restrict files to we write to our user.Andreas Schneider2015-10-121-1/+1
|
* WIP sshd serverAndreas Schneider2015-10-122-2/+103
|
* torture: Add torture_teardown_socket_dir().Andreas Schneider2015-10-122-0/+26
|
* torture: Add torture_setup_socket_dir().Andreas Schneider2015-10-122-0/+54
|
* torture: Add server to get address and port.Andreas Schneider2015-10-122-0/+51
|
* tests: Add ssh host keys for test environment.Andreas Schneider2015-10-128-0/+48
|
* cmake: Configure nss_wrapper.Andreas Schneider2015-10-124-0/+42
|
* cmake: Search for cwrap and sshd.Andreas Schneider2015-10-121-0/+12
|
* tests: add test for cipher.(de|en)cryptAris Adamantiadis2015-09-232-0/+108
|
* tests: Fix return code of torture_initAndreas Schneider2015-09-091-1/+1
| | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* tests: Add tests for the new ssh_pki cert functionsAxel Eppe2015-09-072-0/+169
| | | | | Signed-off-by: Axel Eppe <aeppe@google.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* tests: Migrate pkd_hello to new cmocka APIAndreas Schneider2015-09-071-19/+33
| | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* pki: Use the standard logging functionAndreas Schneider2015-09-071-10/+0
| | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* tests: Migrate to new cmocka APIAndreas Schneider2015-09-0726-275/+395
| | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* cmake: Handle libssh threas library correctlyAndreas Schneider2015-09-072-7/+9
| | | | | | This should fix the build on Windows and would not install pkg files. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* tests: Add checks for ssh_key_is_private()Andreas Schneider2015-08-101-0/+30
| | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* fix permissionsAris Adamantiadis2015-07-081-0/+0
|
* cmake: Fix zlib include directoryAndreas Schneider2015-07-032-6/+6
| | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* cmake: Do not use CMAKE_(SOURCE|BINARY)_DIRDouglas Heriot2015-06-241-1/+1
|
* valgrind: Add suppression for openssl FIPS dlopen leakAndreas Schneider2015-05-061-0/+12
| | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* valgrind: Ignore valgrind free bug on exitAndreas Schneider2015-05-061-0/+12
| | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* tests: Migrate torture_keyfiles to testkey functionsAndreas Schneider2015-05-061-16/+31
| | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* torture: Move TORTURE_TESTKEY_PASSWORD to headerAndreas Schneider2015-05-062-2/+2
| | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* tests: Fix memory leak in torture_server_x11 testAndreas Schneider2015-05-061-0/+2
| | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* tests: Only link against threading library if availableAndreas Schneider2015-05-051-10/+14
| | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* cmake: Add missing OpenSSL include directoryAndreas Schneider2015-05-051-0/+2
| | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* tests: Apply umask before calling mkstemp()Andreas Schneider2015-05-052-1/+8
| | | | | | CID: #978660 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* tests: Fix ctest default scriptAndreas Schneider2015-05-041-4/+4
| | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* unittests: Fix memory leak in torture_pki_ed25519Andreas Schneider2015-04-021-0/+2
| | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* torture: fix includes for freebsd10Aris Adamantiadis2015-02-141-1/+3
|
* tests: torture-misc: check for NULL return codesAris Adamantiadis2015-02-121-3/+17
| | | | | Use the LOGNAME environment variable if USER is not set, as it sometimes happens in cron jobs.
* tests: workaround for compiling with older cmockaAris Adamantiadis2015-02-121-0/+6
|
* tests: allow conditionnal execution on patternAris Adamantiadis2015-02-0225-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>
* ed25519: Add test for signatures and verificationAris Adamantiadis2015-02-022-0/+122
| | | | | Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* tests: Add ed25519 encrypted keys exportAris Adamantiadis2015-02-021-0/+29
| | | | | Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* tests: Add ed25519 encrypted keys importAris Adamantiadis2015-02-022-1/+35
| | | | | Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* tests: Add ed25519 OpenSSH key savingAris Adamantiadis2015-02-021-4/+47
| | | | | Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* tests: Add ed25519 OpenSSH key loading and operationsAris Adamantiadis2015-02-022-2/+206
| | | | | Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* tests: Fix torture_server_x11().Andreas Schneider2015-01-213-4/+30
|
* tests: Add torture_server_x11 test.Alan Dunn2015-01-202-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>
* tests: Add ssh server setup functionalityAlan Dunn2015-01-202-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>
* tests: Add port option to torture_ssh_sessionAlan Dunn2015-01-206-4/+12
| | | | | Signed-off-by: Alan Dunn <amdunn@gmail.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>