1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-01 11:26:52 +03:00

pki: Add ssh_pki_publickey_to_base64().

This commit is contained in:
Andreas Schneider
2011-08-16 00:25:29 +02:00
parent c085892802
commit 9dfef44fd8
3 changed files with 50 additions and 0 deletions

View File

@ -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);
}