Jon Simons
8fe36e3d07
pki crypto: expose new ssh_pki_key_ecdsa_name API
...
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 >
2014-05-07 09:35:06 +02:00
Luka Perkov
818c80baed
tests: torture_connect: add test for user provided socket
...
Signed-off-by: Luka Perkov <luka.perkov@sartura.hr >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 9423a3a065
)
2014-03-27 11:14:25 +01:00
Luka Perkov
bb55bb2daf
tests: torture_connect: fix coding style
...
Signed-off-by: Luka Perkov <luka.perkov@sartura.hr >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 0c5d4954a7
)
2014-03-27 11:14:25 +01:00
Andreas Schneider
257449a0b6
tests: Check the the ecdsa_nid is the same.
...
(cherry picked from commit fbf73ede1e
)
2014-03-27 11:13:15 +01:00
Alan Dunn
8752460df4
tests: Add test case for bug #147
...
Signed-off-by: Alan Dunn <amdunn@gmail.com >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 577840d7f7
)
2014-03-27 11:13:15 +01:00
Aris Adamantiadis
56f86cd4a1
knownhosts: detect variations of ecdsa
2014-02-05 08:08:31 +01:00
Aris Adamantiadis
f265afacfb
tests: lines lost during last cherry-pick merge
2014-02-04 16:20:20 +01:00
Aris Adamantiadis
ce39d2fa73
knownhosts: add test case for bug #138
2014-02-04 16:01:37 +01:00
Aris Adamantiadis
90d3768f0f
known_hosts: add ssh_knownhosts_algorithms()
...
Goal of that function is to test the preferred key exchange methods
based on what's available in the known_hosts file
Conflicts:
tests/client/torture_knownhosts.c
2014-02-04 16:01:02 +01:00
Alan Dunn
809d76cbf2
Test change to ssh_bind_accept_fd
...
Signed-off-by: Alan Dunn <amdunn@gmail.com >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
2014-01-21 16:08:12 +01:00
Andreas Schneider
de464cb74e
src: Update my mail address.
2014-01-07 16:09:04 +01:00
Aris Adamantiadis
1c36642fed
tests: avoid reading uninitialized bytes
2014-01-07 14:43:01 +01:00
Andreas Schneider
ebfdfd9a14
examples: Make sure buffer is initialized.
2014-01-07 09:19:30 +01:00
Aris Adamantiadis
fc0db4d982
test: fixed torture_auth_none condition
2014-01-06 22:10:23 +01:00
Aris Adamantiadis
8f1a350b6e
test: test case for async auth_none
...
This test currently fails
2014-01-06 16:52:35 +01:00
Aris Adamantiadis
15ed51cf20
tests: auth_agent_nonblocking should run in nonblocking
2014-01-06 16:52:35 +01:00
Aris Adamantiadis
ebbf7988b9
tests: use LC_LIBSSH instead of LANG for env tests.
...
LANG is stripped and replaced on many distros and LC_* is accepted
by default on debian
2014-01-06 16:17:38 +01:00
Andreas Schneider
3ba2e7ace7
tests: Fix non-blocking auth tests.
...
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.
2013-12-15 21:04:46 +01:00
Andreas Schneider
15c64b2981
tests: Use new auth API in the torture_session test.
2013-12-15 20:30:48 +01:00
Andreas Schneider
ce5d421753
tests: Use new auth API in the torture_auth test.
2013-12-15 20:26:59 +01:00
Andreas Schneider
fd77439a12
tests: Fix pki test with gcrypt.
2013-12-11 21:12:12 +01:00
Andreas Schneider
880fdb4b52
tests: Try to fix torture_forward.
2013-12-04 16:27:19 +01:00
Andreas Schneider
6a74677cef
tests: Fix memory leaks.
2013-12-04 16:27:18 +01:00
Andreas Schneider
91edc0ee21
tests: Add torture_pki_write_privkey_ecdsa test.
2013-11-27 22:54:40 +01:00
Andreas Schneider
46bda45d95
tests: Add torture_pki_write_privkey_dsa test.
2013-11-27 22:54:40 +01:00
Andreas Schneider
9773c0852a
tests: Add torture_pki_write_privkey_rsa test.
2013-11-27 22:54:40 +01:00
Andreas Schneider
23837b2080
tests: Try to fix valgrind warnings.
2013-11-27 22:53:53 +01:00
Andreas Schneider
4884f1d6fc
tests: Fix a valgrind warning.
2013-11-27 22:53:53 +01:00
Andreas Schneider
24ebbb8b39
tests: Add a test for ssh_channel().
2013-10-31 12:48:55 +01:00
Andreas Schneider
0e4a1b1f66
tests: Add a sftp_read blocking test.
2013-10-23 15:54:40 +02:00
Andreas Schneider
2727af0fe6
tests: Add a test for ssh_channel_request_env().
2013-10-20 17:06:23 +02:00
Andreas Schneider
c42da23348
tests: We can't test the accept right now.
2013-10-20 17:06:22 +02:00
Andreas Schneider
e0adcea90d
tests: Fix torture_forward.
2013-10-20 17:06:21 +02:00
Andreas Schneider
796d285eaf
tests: Add torture forward test.
2013-10-20 12:47:16 +02:00
Andreas Schneider
51296a0237
tests: Add suppression for getdelim with selinux.
2013-07-26 08:04:03 +02:00
Andreas Schneider
df81a05505
cmake: Check for unistd.h.
2013-07-23 10:44:51 +02:00
Andreas Schneider
2106db3efa
tests: Don't leak memory in torture_channel_read_error().
2013-07-21 11:27:30 +02:00
Andreas Schneider
48b715cce0
tests: Use fstat() after the open().
2013-07-13 13:59:58 +02:00
Andreas Schneider
e52cc613e4
BUG 103: Disable proxy command if set to 'none'.
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2013-07-11 15:34:50 +02:00
Andreas Schneider
68be73ec0d
tests: Check return value of stat.
2013-06-18 17:11:34 +02:00
Andreas Schneider
485e3b4014
tests: Check return values of buffer functions.
2013-06-18 17:10:00 +02:00
Andreas Schneider
d255d1bf32
tests: Use memory assert functions.
2013-06-17 11:44:28 +02:00
Andreas Schneider
a38c56370c
torture: Fix a resource leak on error.
2013-06-13 15:43:50 +02:00
Andreas Schneider
01493b8d47
tests: Don't leak memory.
2013-06-13 15:42:13 +02:00
Andreas Schneider
51a531f4a7
tests: Check the return value of write.
2013-06-11 09:59:22 +02:00
Aris Adamantiadis
de096910b3
Report according status when errors are detected
2012-12-27 22:01:37 +01:00
Aris Adamantiadis
ce33633bcb
Test for bug #64 , ssh_channel_read doesn't detect errors
2012-12-27 22:01:08 +01:00
Aris Adamantiadis
5dfc474fa8
Benchmarks: parse config files
2012-12-23 23:10:52 +01:00
Aris Adamantiadis
cd4e28e7c8
test: Try to fetch wrong values in buffer.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
2012-11-27 19:10:41 +01:00
Andreas Schneider
e8118c5be4
tests: Add a valgrind suppression for getaddrino leak.
...
https://bugzilla.redhat.com/show_bug.cgi?id=859717
2012-10-12 14:45:54 +02:00