diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2011-08-16 22:15:05 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-08-16 23:04:25 +0200 |
commit | 1a0fbedc2e7bc688ce380bbb465a5e1710355666 (patch) | |
tree | 3b6782150c8824829a4cbfc6cf66adf19f04cafa /tests/unittests/torture_pki.c | |
parent | 254c30be2e97812a892c96210491720d63538994 (diff) | |
download | libssh-1a0fbedc2e7bc688ce380bbb465a5e1710355666.tar.gz libssh-1a0fbedc2e7bc688ce380bbb465a5e1710355666.tar.xz libssh-1a0fbedc2e7bc688ce380bbb465a5e1710355666.zip |
pki: Fix and rename ssh_pki_publickey_to_base64().
Rename it to ssh_pki_export_publickey_base64().
Diffstat (limited to 'tests/unittests/torture_pki.c')
-rw-r--r-- | tests/unittests/torture_pki.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/unittests/torture_pki.c b/tests/unittests/torture_pki.c index 8a709927..643fc120 100644 --- a/tests/unittests/torture_pki.c +++ b/tests/unittests/torture_pki.c @@ -264,9 +264,8 @@ static void torture_pki_publickey_dsa_base64(void **state) { ssh_session session = *state; enum ssh_keytypes_e type; - char *key_buf, *p; + char *b64_key, *key_buf, *p; const char *q; - unsigned char *b64_key; ssh_key key; int rc; @@ -287,7 +286,7 @@ static void torture_pki_publickey_dsa_base64(void **state) rc = ssh_pki_import_pubkey_base64(q, type, &key); assert_true(rc == 0); - rc = ssh_pki_publickey_to_base64(key, &b64_key, &type); + rc = ssh_pki_export_publickey_base64(key, &b64_key); assert_true(rc == 0); assert_string_equal(q, b64_key); @@ -301,9 +300,8 @@ static void torture_pki_publickey_rsa_base64(void **state) { ssh_session session = *state; enum ssh_keytypes_e type; - char *key_buf, *p; + char *b64_key, *key_buf, *p; const char *q; - unsigned char *b64_key; ssh_key key; int rc; @@ -325,7 +323,7 @@ static void torture_pki_publickey_rsa_base64(void **state) rc = ssh_pki_import_pubkey_base64(q, type, &key); assert_true(rc == 0); - rc = ssh_pki_publickey_to_base64(key, &b64_key, &type); + rc = ssh_pki_export_publickey_base64(key, &b64_key); assert_true(rc == 0); assert_string_equal(q, b64_key); |