mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-07-31 00:03:07 +03:00
tests: Add pki signature test.
This commit is contained in:
@ -130,6 +130,18 @@ static void torture_pki_keytype(void **state) {
|
|||||||
assert_true(type_c == NULL);
|
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) {
|
static void torture_pki_import_privkey_base64_RSA(void **state) {
|
||||||
int rc;
|
int rc;
|
||||||
char *key_str;
|
char *key_str;
|
||||||
@ -559,6 +571,8 @@ int torture_run_tests(void) {
|
|||||||
const UnitTest tests[] = {
|
const UnitTest tests[] = {
|
||||||
unit_test(torture_pki_keytype),
|
unit_test(torture_pki_keytype),
|
||||||
|
|
||||||
|
unit_test(torture_pki_signature),
|
||||||
|
|
||||||
/* ssh_pki_import_privkey_base64 */
|
/* ssh_pki_import_privkey_base64 */
|
||||||
unit_test_setup_teardown(torture_pki_import_privkey_base64_NULL_key,
|
unit_test_setup_teardown(torture_pki_import_privkey_base64_NULL_key,
|
||||||
setup_rsa_key,
|
setup_rsa_key,
|
||||||
|
Reference in New Issue
Block a user