summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* tests: Make write file a public torture function.Andreas Schneider2014-08-153-30/+32
| | | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Aris Adamantiadis <aris@0xbadc0de.be>
* tests: Make sure we null terminate the buffer.Andreas Schneider2014-08-151-3/+4
| | | | | | | CID: 1230359 Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Aris Adamantiadis <aris@0xbadc0de.be>
* tests: Fix memory leak in buffer test.Andreas Schneider2014-08-151-0/+2
| | | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Aris Adamantiadis <aris@0xbadc0de.be>
* torture_pki: avoid generating keys with ssh-keygenAris Adamantiadis2014-08-061-96/+212
| | | | | | | | ssh-keygen makes the tests very slow because new keys are generated at the start of every test. ssh-keygen on OSX doesn't support ecdsa keys, even if libcrypto does. Reviewed-by: Andreas Schneider <asn@samba.org>
* tests: test the canary feature in buffer_(un)pack()Aris Adamantiadis2014-08-061-1/+27
| | | | Reviewed-by: Andreas Schneider <asn@samba.org>
* tests: test for ssh_buffer_(un)packAris Adamantiadis2014-08-061-0/+98
| | | | Reviewed-by: Andreas Schneider <asn@samba.org>
* examples: cast arguments of connect(2)Aris Adamantiadis2014-07-061-1/+1
| | | | Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* tests: Add test for the logging function.Andreas Schneider2014-06-101-0/+40
|
* Add tests for SHA2 HMAC algorithmsDirkjan Bussink2014-04-221-25/+111
| | | | | | BUG: https://red.libssh.org/issues/91 Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* pki crypto: expose new ssh_pki_key_ecdsa_name APIJon Simons2014-04-091-10/+142
| | | | | | | | | | | | | Enable retrieving the "ecdsa-sha2-nistpNNN" name of ECDSA keys with a new 'ssh_pki_key_ecdsa_name' API. This gives more information than the 'ssh_key_type_to_char' API, which yields "ssh-ecdsa" for ECDSA keys. The motivation is that this info is useful to have in a server context. The torture_pki unit test is updated to include the new API, and a few more passes are added to additionally test 384 and 521-bit keys. Signed-off-by: Jon Simons <jon@jonsimons.org> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* tests: torture_connect: add test for user provided socketLuka Perkov2014-03-271-0/+25
| | | | | Signed-off-by: Luka Perkov <luka.perkov@sartura.hr> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* tests: torture_connect: fix coding styleLuka Perkov2014-03-271-8/+7
| | | | | Signed-off-by: Luka Perkov <luka.perkov@sartura.hr> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* tests: Check the the ecdsa_nid is the same.Andreas Schneider2014-03-271-0/+2
|
* tests: Add test case for bug #147Alan Dunn2014-03-271-0/+34
| | | | | Signed-off-by: Alan Dunn <amdunn@gmail.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* knownhosts: detect variations of ecdsaAris Adamantiadis2014-02-041-10/+10
|
* build: fix cmake bug introduced yesterdayAris Adamantiadis2014-02-021-3/+3
| | | | Compilation failed on OSX because of the missing OR OSX
* knownhosts: add test case for bug #138Aris Adamantiadis2014-02-011-0/+43
|
* known_hosts: add ssh_knownhosts_algorithms()Aris Adamantiadis2014-02-011-3/+30
| | | | | Goal of that function is to test the preferred key exchange methods based on what's available in the known_hosts file
* Added known host test casesAris Adamantiadis2014-02-011-0/+122
|
* tests: fix compilation on OSX (libargp detection)Aris Adamantiadis2014-02-011-1/+1
|
* Test change to ssh_bind_accept_fdAlan Dunn2014-01-211-0/+139
| | | | | Signed-off-by: Alan Dunn <amdunn@gmail.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* src: Rename buffer_add_data() to ssh_buffer_add_data().Andreas Schneider2014-01-191-5/+5
|
* src: Do not use deprecated functions.Andreas Schneider2014-01-161-2/+2
|
* channel: Fix the name scheme of the forward functions.Andreas Schneider2014-01-161-1/+1
|
* src: Update my mail address.Andreas Schneider2014-01-072-2/+2
|
* tests: avoid reading uninitialized bytesAris Adamantiadis2014-01-071-2/+2
|
* examples: Make sure buffer is initialized.Andreas Schneider2014-01-071-1/+1
|
* test: fixed torture_auth_none conditionAris Adamantiadis2014-01-061-2/+2
|
* test: test case for async auth_noneAris Adamantiadis2014-01-061-0/+59
| | | | This test currently fails
* tests: auth_agent_nonblocking should run in nonblockingAris Adamantiadis2014-01-061-0/+2
|
* tests: use LC_LIBSSH instead of LANG for env tests.Aris Adamantiadis2014-01-061-2/+2
| | | | | LANG is stripped and replaced on many distros and LC_* is accepted by default on debian
* tests: Fix non-blocking auth tests.Andreas Schneider2013-12-151-7/+15
| | | | | | The ssh_userauth_none() call should already be non-blocking. However this this function is broken in non-blocking mode. It should reveal the existing bug.
* tests: Fix blocking mode in password auth test.Andreas Schneider2013-12-151-1/+1
|
* tests: Use new auth API in the torture_session test.Andreas Schneider2013-12-151-2/+3
|
* tests: Use new auth API in the torture_auth test.Andreas Schneider2013-12-151-10/+19
|
* tests: Fix pki test with gcrypt.Andreas Schneider2013-12-111-0/+4
|
* tests: Try to fix torture_forward.Andreas Schneider2013-12-041-4/+4
|
* tests: Fix memory leaks.Andreas Schneider2013-11-281-0/+9
|
* tests: Add missing line breaks.Andreas Schneider2013-11-281-2/+2
|
* tests: Add torture_pki_write_privkey_ecdsa test.Andreas Schneider2013-11-271-0/+44
|
* tests: Add torture_pki_write_privkey_dsa test.Andreas Schneider2013-11-271-0/+40
|
* tests: Add torture_pki_write_privkey_rsa test.Andreas Schneider2013-11-271-0/+40
|
* tests: Try to fix valgrind warnings.Andreas Schneider2013-11-272-4/+4
|
* tests: Fix a valgrind warning.Andreas Schneider2013-11-271-0/+1
|
* tests: Add a test for ssh_channel().Andreas Schneider2013-10-312-0/+50
|
* tests: Add a sftp_read blocking test.Andreas Schneider2013-10-232-0/+84
|
* tests: Add a test for ssh_channel_request_env().Andreas Schneider2013-10-202-0/+115
|
* tests: We can't test the accept right now.Andreas Schneider2013-10-201-1/+5
|
* tests: Fix torture_forward.Andreas Schneider2013-10-201-3/+4
|
* tests: Add torture forward test.Andreas Schneider2013-10-202-0/+90
|