aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/libssh.h
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-08-16 00:25:29 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-08-16 00:47:43 +0200
commit9dfef44fd88292ab19f46bdfa428e5378f5ae41f (patch)
treeb786a08cc401b0eff25978eb19752291e144f805 /include/libssh/libssh.h
parentc085892802304eeef846cd575249d1aab9a0efcb (diff)
downloadlibssh-9dfef44fd88292ab19f46bdfa428e5378f5ae41f.tar.gz
libssh-9dfef44fd88292ab19f46bdfa428e5378f5ae41f.tar.xz
libssh-9dfef44fd88292ab19f46bdfa428e5378f5ae41f.zip
pki: Add ssh_pki_publickey_to_base64().
Diffstat (limited to 'include/libssh/libssh.h')
-rw-r--r--include/libssh/libssh.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h
index cbe9ff1d..de3480e3 100644
--- a/include/libssh/libssh.h
+++ b/include/libssh/libssh.h
@@ -444,6 +444,9 @@ LIBSSH_API int ssh_pki_import_pubkey_file(ssh_session session,
const char *filename,
ssh_key *pkey);
LIBSSH_API ssh_string ssh_pki_publickey_to_blob(const ssh_key key);
+LIBSSH_API int ssh_pki_publickey_to_base64(const ssh_key key,
+ unsigned char **b64_key,
+ enum ssh_keytypes_e *ptype);
LIBSSH_API int ssh_userauth_pki_pubkey(ssh_session session, const char *username,
ssh_string publickey, ssh_key privatekey);