summaryrefslogtreecommitdiffstats
path: root/tests/unittests
Commit message (Collapse)AuthorAgeFilesLines
* unittests: Fix memory leak in torture_pki_ed25519Andreas Schneider2015-04-021-0/+2
| | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* 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: allow conditionnal execution on patternAris Adamantiadis2015-02-0211-12/+22
| | | | | | | | 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-021-0/+18
| | | | | 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-021-2/+187
| | | | | Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* tests: Fix torture_server_x11().Andreas Schneider2015-01-211-2/+7
|
* 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>
* buffer: Add a secure buffer mechanism to avoid memory spillsAris Adamantiadis2014-09-071-0/+1
| | | | Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* buffer: Implement "t" for text in ssh_buffer_pack().Aris Adamantiadis2014-09-071-2/+3
| | | | Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* tests: Fix writing the '\0'.Andreas Schneider2014-08-181-2/+2
| | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* tests: Use public testkey passphrase function in pki test.Andreas Schneider2014-08-151-7/+6
| | | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Aris Adamantiadis <aris@0xbadc0de.be>
* tests: Use public testkeys in pki test.Andreas Schneider2014-08-151-178/+74
| | | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Aris Adamantiadis <aris@0xbadc0de.be>
* tests: Make write file a public torture function.Andreas Schneider2014-08-151-28/+10
| | | | | 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>
* tests: Add test for the logging function.Andreas Schneider2014-06-101-0/+40
|
* 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: 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>
* 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
|
* tests: Fix pki test with gcrypt.Andreas Schneider2013-12-111-0/+4
|
* tests: Fix memory leaks.Andreas Schneider2013-11-281-0/+9
|
* 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: Fix a valgrind warning.Andreas Schneider2013-11-271-0/+1
|
* tests: Add a test for ssh_channel().Andreas Schneider2013-10-312-0/+50
|
* tests: Use fstat() after the open().Andreas Schneider2013-07-131-8/+8
|
* BUG 103: Disable proxy command if set to 'none'.Andreas Schneider2013-07-111-0/+18
| | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* tests: Check return value of stat.Andreas Schneider2013-06-181-1/+3
|
* tests: Check return values of buffer functions.Andreas Schneider2013-06-181-3/+7
|
* tests: Use memory assert functions.Andreas Schneider2013-06-171-7/+10
|
* tests: Don't leak memory.Andreas Schneider2013-06-131-1/+2
|
* test: Try to fetch wrong values in buffer.Aris Adamantiadis2012-11-271-0/+33
| | | | Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* tests: Don't leak memory in options test.Andreas Schneider2012-10-071-0/+4
|
* test: Use cmocka instead of cmockery.Andreas Schneider2012-10-071-10/+10
| | | | | | cmocka is the successor of cmockery. http://git.cryptomilk.org/projects/cmocka.git/
* session: Use a struct for all options.Andreas Schneider2012-02-052-18/+18
|
* pki: Fix build if you don't have ECC support.Andreas Schneider2012-02-041-6/+30
|
* tests: Test ecdsa key generation and signing.Andreas Schneider2012-02-041-0/+45
|
* tests: Add duplicate ecdsa key test.Andreas Schneider2012-02-041-0/+49
|
* tests: Add ecdsa pubkey_from_privkey test.Andreas Schneider2012-02-041-0/+44
|
* tests: Add ecdsa publickey_from_privatekey test.Andreas Schneider2012-02-041-0/+26
|
* tests: Add a testing of importing ecdsa pubkeys.Andreas Schneider2012-02-041-0/+40
|