aboutsummaryrefslogtreecommitdiff
path: root/tests/unittests
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-08-19 11:14:23 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-08-19 11:14:23 +0200
commitc575de17a8d020149ac9122da3b772ebca180115 (patch)
tree98ee403bee5aa2e21ab51d4cca50da50c12f76db /tests/unittests
parent3e56ac650cdd5d28fd3a4c6b1e6686b3a7725e7e (diff)
downloadlibssh-c575de17a8d020149ac9122da3b772ebca180115.tar.gz
libssh-c575de17a8d020149ac9122da3b772ebca180115.tar.xz
libssh-c575de17a8d020149ac9122da3b772ebca180115.zip
pki: Use a consistent naming scheme.
Diffstat (limited to 'tests/unittests')
-rw-r--r--tests/unittests/torture_pki.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unittests/torture_pki.c b/tests/unittests/torture_pki.c
index 6e009fb..7f8c68d 100644
--- a/tests/unittests/torture_pki.c
+++ b/tests/unittests/torture_pki.c
@@ -316,7 +316,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_export_publickey_base64(key, &b64_key);
+ rc = ssh_pki_export_pubkey_base64(key, &b64_key);
assert_true(rc == 0);
assert_string_equal(q, b64_key);
@@ -354,7 +354,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_export_publickey_base64(key, &b64_key);
+ rc = ssh_pki_export_pubkey_base64(key, &b64_key);
assert_true(rc == 0);
assert_string_equal(q, b64_key);
@@ -391,7 +391,7 @@ static void torture_generate_pubkey_from_privkey(void **state) {
pubkey = ssh_pki_publickey_from_privatekey(privkey);
assert_true(pubkey != NULL);
- rc = ssh_pki_export_publickey_file(pubkey, LIBSSH_DSA_TESTKEY ".pub");
+ rc = ssh_pki_export_pubkey_file(pubkey, LIBSSH_DSA_TESTKEY ".pub");
assert_true(rc == 0);
rc = torture_read_one_line(LIBSSH_DSA_TESTKEY ".pub",