summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/unittests/torture_pki.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/unittests/torture_pki.c b/tests/unittests/torture_pki.c
index 6425d6d..42082b1 100644
--- a/tests/unittests/torture_pki.c
+++ b/tests/unittests/torture_pki.c
@@ -306,6 +306,11 @@ static void torture_pki_publickey_rsa_base64(void **state)
rc = ssh_pki_import_pubkey_base64(session, q, type, &key);
assert_true(rc == 0);
+ rc = ssh_pki_publickey_to_base64(key, &b64_key, &type);
+ assert_true(rc == 0);
+
+ assert_string_equal(q, b64_key);
+
free(key_buf);
ssh_key_free(key);
}