Andreas Schneider
0e98f1214d
torture: Improve process termination function
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-01-14 08:04:49 +01:00
Andreas Schneider
6e7eae968a
tests: Support other openssh versions ...
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-01-14 08:04:49 +01:00
Andreas Schneider
a30d16c48a
torture: Start sshd as root
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-01-14 08:04:49 +01:00
Andreas Schneider
c1fb948397
torture: Enable old host key algos for testing
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-01-14 08:04:49 +01:00
Andreas Schneider
66f51df9df
torture: Fix torture_ssh_session() for cwrap testing
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-01-14 08:04:49 +01:00
Andreas Schneider
dd0d04ae8d
torture: Enable old cipher and kex algos in sshd
...
We need to test them, so enable them in the sshd.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-01-14 08:04:49 +01:00
Andreas Schneider
ae89b6c078
torture: Create a torture_terminate_process() function
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-01-14 08:04:49 +01:00
Andreas Schneider
14f1ce2e5b
torture: Add torture_teardown_sshd_server().
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-01-14 08:04:49 +01:00
Andreas Schneider
62b0f58d24
torture: Restrict files to we write to our user.
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-01-14 08:04:49 +01:00
Andreas Schneider
c3f963e71e
torture: Add function to setup sshd server
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-01-14 08:04:49 +01:00
Andreas Schneider
fd09c4cb29
torture: Add torture_teardown_socket_dir().
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-01-14 08:04:49 +01:00
Andreas Schneider
13f68fc2d5
torture: Add torture_setup_socket_dir().
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-01-14 08:04:49 +01:00
Andreas Schneider
7a523597ad
torture: Add server to get address and port.
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-01-14 08:04:49 +01:00
Axel Eppe
d8be35de7f
tests: Add tests for the new ssh_pki cert functions
...
Signed-off-by: Axel Eppe <aeppe@google.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-09-07 13:30:34 +02:00
Andreas Schneider
82a80b205b
tests: Migrate to new cmocka API
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-09-07 10:40:12 +02:00
Andreas Schneider
f81d296e54
torture: Move TORTURE_TESTKEY_PASSWORD to header
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-05-06 09:47:17 +02:00
Aris Adamantiadis
d42a1a35b0
tests: allow conditionnal execution on pattern
...
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-02 17:34:15 +01:00
Aris Adamantiadis
b76d37b341
tests: Add ed25519 encrypted keys import
...
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-02 14:45:52 +01:00
Aris Adamantiadis
119840b0a9
tests: Add ed25519 OpenSSH key loading and operations
...
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-02 14:45:52 +01:00
Andreas Schneider
f6a50aff4c
tests: Fix torture_server_x11().
2015-01-21 09:19:30 +01:00
Alan Dunn
4bde48bb2e
tests: Add ssh server setup functionality
...
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-20 19:50:52 +01:00
Alan Dunn
f4154c503b
tests: Add port option to torture_ssh_session
...
Signed-off-by: Alan Dunn <amdunn@gmail.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-01-20 19:41:53 +01:00
Jon Simons
014fde0542
torture: fix warning for SSH_KEYTYPE_ED25519
...
Signed-off-by: Jon Simons <jon@jonsimons.org>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2014-12-09 19:21:18 +01:00
Andreas Schneider
c6210f5aef
torture: Add public testkey passphrase function.
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Aris Adamantiadis <aris@0xbadc0de.be>
2014-08-15 12:32:54 +02:00
Andreas Schneider
edca9d6e96
torture: Add public testkey functions.
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Aris Adamantiadis <aris@0xbadc0de.be>
2014-08-15 12:32:47 +02:00
Andreas Schneider
83aed7610c
tests: Make write file a public torture function.
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Aris Adamantiadis <aris@0xbadc0de.be>
2014-08-15 12:32:37 +02:00
Andreas Schneider
6fe51b13fb
src: Update my mail address.
2014-01-07 16:08:23 +01:00
Andreas Schneider
df81a05505
cmake: Check for unistd.h.
2013-07-23 10:44:51 +02:00
Andreas Schneider
a38c56370c
torture: Fix a resource leak on error.
2013-06-13 15:43:50 +02:00
Andreas Schneider
9fe47da903
torture: Fix keyboard interactive authentication.
2012-10-09 10:11:55 +02:00
Andreas Schneider
e17fcd70f9
torture: Use new userauth functions.
2012-10-07 23:21:17 +02:00
Aris Adamantiadis
7363b29427
unittests:make sftp_dir pass on my laptop
2011-09-02 11:41:04 +03:00
Andreas Schneider
693425afab
tests: Check error of ssh_userauth_kbdint().
2011-05-28 13:31:17 +02:00
Andreas Schneider
82798035fc
tests: Remove superfluous closedir().
2011-05-28 13:28:49 +02:00
Aris Adamantiadis
809b3adeba
Fix compilation without server and sftp modes
2011-05-26 21:56:42 +02:00
Oliver Stöneberg
e3311d03db
tests: Fixed some cppcheck warnings.
2011-05-17 14:20:28 +02:00
Andreas Schneider
cbcd5668f5
torture: Fixed torture on Windows.
2011-02-13 11:56:47 +01:00
Andreas Schneider
f5e2c94ae3
torture: Fixed memory leak.
2011-02-08 19:08:27 +01:00
Andreas Schneider
057704c097
torture: Added more test for correct auth.
2011-02-07 13:31:31 +01:00
Andreas Schneider
92f20ec85a
torture: Fixed the kbdint auth.
2011-02-07 13:31:08 +01:00
Andreas Schneider
a26194ece0
torture: Rename the static auth kbdint function.
2011-02-07 13:30:23 +01:00
Andreas Schneider
22b1e5bc7c
tests: Added test for sftp directory functions.
2011-02-06 16:35:54 +01:00
Andreas Schneider
38d6d38c1f
torture: Added a function to setup a sftp session.
2011-02-06 16:27:43 +01:00
Andreas Schneider
215c41710e
torture: Added torture_isdir().
2011-02-06 15:35:18 +01:00
Andreas Schneider
97d261dc79
torture: Added torture_rmdirs().
2011-02-06 15:35:18 +01:00
Andreas Schneider
892ebf35f1
torture: Added GPL header.
2011-02-06 15:34:32 +01:00
Andreas Schneider
05cd7296ba
tests: Added a torture_ssh_session().
2011-02-06 11:15:05 +01:00
Aris Adamantiadis
2917e71aad
Replaced argp support for platforms that support it
...
Argp is really useful, but it's not mandatory.
2011-01-13 18:34:04 +01:00
Aris Adamantiadis
2faaefade9
Revert "tests: Call ssh_init() and ssh_finalize() before we run the tests."
...
Reason: breaks test_rand, because threading has to be initialized
before ssh_init()
This reverts commit ef1866db76ed10d64bf8cf97111554b2b2eb1278.
2011-01-02 17:15:03 +01:00
Andreas Schneider
ef1866db76
tests: Call ssh_init() and ssh_finalize() before we run the tests.
2011-01-02 09:19:53 +01:00