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:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user