diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libssh/libssh.h | 8 | ||||
-rw-r--r-- | include/libssh/pki.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index 630938b..638cb48 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -457,10 +457,10 @@ LIBSSH_API int ssh_pki_import_pubkey_base64(const char *b64_key, ssh_key *pkey); LIBSSH_API int ssh_pki_import_pubkey_file(const char *filename, ssh_key *pkey); -LIBSSH_API int ssh_pki_export_publickey_base64(const ssh_key key, - char **b64_key); -LIBSSH_API int ssh_pki_export_publickey_file(const ssh_key key, - const char *filename); +LIBSSH_API int ssh_pki_export_pubkey_base64(const ssh_key key, + char **b64_key); +LIBSSH_API int ssh_pki_export_pubkey_file(const ssh_key key, + const char *filename); LIBSSH_API int ssh_userauth_pki_pubkey(ssh_session session, const char *username, ssh_string publickey, ssh_key privatekey); diff --git a/include/libssh/pki.h b/include/libssh/pki.h index 429dd16..20fb7c9 100644 --- a/include/libssh/pki.h +++ b/include/libssh/pki.h @@ -60,7 +60,7 @@ int pki_pubkey_build_dss(ssh_key key, int pki_pubkey_build_rsa(ssh_key key, ssh_string e, ssh_string n); -ssh_string pki_publickey_to_string(const ssh_key key); +ssh_string pki_publickey_to_blob(const ssh_key key); /* half public ssh pki functions */ @@ -72,7 +72,7 @@ ssh_key ssh_pki_publickey_from_privatekey(const ssh_key privkey); int ssh_pki_import_pubkey_blob(const ssh_string key_blob, ssh_key *pkey); -ssh_string ssh_pki_publickey_to_blob(const ssh_key key); +ssh_string ssh_pki_export_pubkey_blob(const ssh_key key); ssh_string ssh_pki_do_sign(ssh_session session, ssh_buffer sigbuf, ssh_key privatekey); |