aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/libssh.h
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-08-07 19:53:03 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-08-08 15:28:31 +0200
commitbec483bc1874909be8fd9c8fbc909f53be5ba27a (patch)
treefd00ee7897dbe20e96e1772e30654a44c1eac728 /include/libssh/libssh.h
parentf81444bd57095cf8ff8e76b50f662aad0757f574 (diff)
downloadlibssh-bec483bc1874909be8fd9c8fbc909f53be5ba27a.tar.gz
libssh-bec483bc1874909be8fd9c8fbc909f53be5ba27a.tar.xz
libssh-bec483bc1874909be8fd9c8fbc909f53be5ba27a.zip
pki: Add ssh_pki_import_pubkey_base64().
Diffstat (limited to 'include/libssh/libssh.h')
-rw-r--r--include/libssh/libssh.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h
index 7357129b..ac73bc02 100644
--- a/include/libssh/libssh.h
+++ b/include/libssh/libssh.h
@@ -433,6 +433,11 @@ LIBSSH_API int ssh_key_import_private(ssh_session session,
const char *filename,
const char *passphrase,
ssh_key *pkey);
+LIBSSH_API int ssh_pki_import_pubkey_base64(ssh_session session,
+ const char *b64_key,
+ enum ssh_keytypes_e type,
+ ssh_key *pkey);
+
LIBSSH_API int ssh_userauth_pki_pubkey(ssh_session session, const char *username,
ssh_string publickey, ssh_key privatekey);
LIBSSH_API void ssh_print_hexa(const char *descr, const unsigned char *what, size_t len);