summaryrefslogtreecommitdiffstats
path: root/src/legacy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/legacy.c')
-rw-r--r--src/legacy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/legacy.c b/src/legacy.c
index ec81c22..531feb6 100644
--- a/src/legacy.c
+++ b/src/legacy.c
@@ -355,7 +355,7 @@ ssh_string publickey_from_file(ssh_session session, const char *filename,
return NULL;
}
- key_str = ssh_pki_publickey_to_blob(key);
+ key_str = ssh_pki_export_pubkey_blob(key);
if (key_str == NULL) {
return NULL;
}
@@ -420,7 +420,7 @@ ssh_string publickey_to_string(ssh_public_key pubkey) {
key->dsa = pubkey->dsa_pub;
key->rsa = pubkey->rsa_pub;
- key_blob = ssh_pki_publickey_to_blob(key);
+ key_blob = ssh_pki_export_pubkey_blob(key);
key->dsa = NULL;
key->rsa = NULL;