aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormilo <milo@r0ot.me>2011-03-09 12:57:26 +0100
committermilo <milo@r0ot.me>2011-03-17 11:41:50 +0100
commit90a2c361fc147b7d8aea94c429e85da907b67365 (patch)
tree751babb9d7cfda54373f16e725b5de292da7d082 /include
parent3a53d5268dba88df3e4c56b57f781518dc7065d6 (diff)
downloadlibssh-90a2c361fc147b7d8aea94c429e85da907b67365.tar.gz
libssh-90a2c361fc147b7d8aea94c429e85da907b67365.tar.xz
libssh-90a2c361fc147b7d8aea94c429e85da907b67365.zip
[pki] Added privatekey_from_base64() function...
and wrapped it with privatekey_from_file()
Diffstat (limited to 'include')
-rw-r--r--include/libssh/keyfiles.h3
-rw-r--r--include/libssh/libssh.h3
2 files changed, 6 insertions, 0 deletions
diff --git a/include/libssh/keyfiles.h b/include/libssh/keyfiles.h
index 80e989f..ac5feb0 100644
--- a/include/libssh/keyfiles.h
+++ b/include/libssh/keyfiles.h
@@ -30,4 +30,7 @@ ssh_string try_publickey_from_file(ssh_session session,
struct ssh_keys_struct keytab,
char **privkeyfile, int *type);
+ssh_private_key privatekey_from_base64(ssh_session session, const char *b64_pkey,
+ int type, const char *passphrase);
+
#endif /* KEYFILES_H_ */
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h
index 7a4060e..b73c5c4 100644
--- a/include/libssh/libssh.h
+++ b/include/libssh/libssh.h
@@ -489,6 +489,9 @@ LIBSSH_API int ssh_event_remove_fd(ssh_event event, socket_t fd);
LIBSSH_API int ssh_event_remove_session(ssh_event event, ssh_session session);
LIBSSH_API void ssh_event_free(ssh_event event);
+LIBSSH_API ssh_private_key privatekey_from_base64(ssh_session session, const char *b64_pkey,
+ int type, const char *passphrase);
+
#ifndef LIBSSH_LEGACY_0_4
#include "libssh/legacy.h"
#endif