From 822c68eb8e06204170a2b0f9641f5886a45d397f Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 30 Aug 2011 10:28:57 +0200 Subject: pki: Use consistent API for ssh_pki_export_privkey_to_pubkey(). --- include/libssh/libssh.h | 3 +++ include/libssh/pki.h | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'include/libssh') diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index 7873ea79..6aaffdb8 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -449,6 +449,9 @@ 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_privkey_to_pubkey(const ssh_key privkey, + ssh_key *pkey); 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, diff --git a/include/libssh/pki.h b/include/libssh/pki.h index 77106b43..7784deb9 100644 --- a/include/libssh/pki.h +++ b/include/libssh/pki.h @@ -80,9 +80,6 @@ int ssh_pki_export_pubkey_blob(const ssh_key key, int ssh_pki_import_pubkey_blob(const ssh_string key_blob, ssh_key *pkey); -/* SSH Private Key Functions */ -ssh_key ssh_pki_publickey_from_privatekey(const ssh_key privkey); - /* SSH Signing Functions */ ssh_string ssh_pki_do_sign(ssh_session session, ssh_buffer sigbuf, ssh_key privatekey); -- cgit