diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2011-08-16 00:25:29 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-08-16 00:47:43 +0200 |
commit | 9dfef44fd88292ab19f46bdfa428e5378f5ae41f (patch) | |
tree | b786a08cc401b0eff25978eb19752291e144f805 /tests/unittests | |
parent | c085892802304eeef846cd575249d1aab9a0efcb (diff) | |
download | libssh-9dfef44fd88292ab19f46bdfa428e5378f5ae41f.tar.gz libssh-9dfef44fd88292ab19f46bdfa428e5378f5ae41f.tar.xz libssh-9dfef44fd88292ab19f46bdfa428e5378f5ae41f.zip |
pki: Add ssh_pki_publickey_to_base64().
Diffstat (limited to 'tests/unittests')
-rw-r--r-- | tests/unittests/torture_pki.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/unittests/torture_pki.c b/tests/unittests/torture_pki.c index 6425d6d7..42082b1c 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); } |