diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2011-08-21 13:17:30 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-08-21 13:17:30 +0200 |
commit | a98301d2b09be81e4299e1d5b1adaf25ecdb59fe (patch) | |
tree | dcd4d8c7b4c621d9b7202c69be19ddcc4b8cabd8 | |
parent | 9c9199e05fadfb4d44ac80b23adbc67d95bd7541 (diff) | |
download | libssh-a98301d2b09be81e4299e1d5b1adaf25ecdb59fe.tar.gz libssh-a98301d2b09be81e4299e1d5b1adaf25ecdb59fe.tar.xz libssh-a98301d2b09be81e4299e1d5b1adaf25ecdb59fe.zip |
tests: Add pki signature test.
-rw-r--r-- | tests/unittests/torture_pki.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/unittests/torture_pki.c b/tests/unittests/torture_pki.c index 9dc703f..02dd818 100644 --- a/tests/unittests/torture_pki.c +++ b/tests/unittests/torture_pki.c @@ -130,6 +130,18 @@ static void torture_pki_keytype(void **state) { assert_true(type_c == NULL); } +static void torture_pki_signature(void **state) +{ + ssh_signature sig; + + (void) state; /* unused */ + + sig = ssh_signature_new(); + assert_true(sig != NULL); + + ssh_signature_free(sig); +} + static void torture_pki_import_privkey_base64_RSA(void **state) { int rc; char *key_str; @@ -559,6 +571,8 @@ int torture_run_tests(void) { const UnitTest tests[] = { unit_test(torture_pki_keytype), + unit_test(torture_pki_signature), + /* ssh_pki_import_privkey_base64 */ unit_test_setup_teardown(torture_pki_import_privkey_base64_NULL_key, setup_rsa_key, |