aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavidWed <davidwe@posteo.de>2016-11-23 13:33:19 +0100
committerAndreas Schneider <asn@cryptomilk.org>2018-09-20 16:35:13 +0200
commitd0ce2d1ecdfae15c4ec6c6a16e6fb171d25960d4 (patch)
treecd72817fef55146daca451c969f63d83be42a321 /include
parent5a198732a5cefac63fef3dc9d6a4dafa2ca6b87a (diff)
downloadlibssh-d0ce2d1ecdfae15c4ec6c6a16e6fb171d25960d4.tar.gz
libssh-d0ce2d1ecdfae15c4ec6c6a16e6fb171d25960d4.tar.xz
libssh-d0ce2d1ecdfae15c4ec6c6a16e6fb171d25960d4.zip
pki: Add ssh_pki_export_privkey_base64()
Fixes T53 Signed-off-by: DavidWedderwille <davidwe@posteo.de> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'include')
-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 1c8dd7cd..a83bd8a2 100644
--- a/include/libssh/libssh.h
+++ b/include/libssh/libssh.h
@@ -647,6 +647,11 @@ LIBSSH_API int ssh_pki_import_privkey_base64(const char *b64_key,
ssh_auth_callback auth_fn,
void *auth_data,
ssh_key *pkey);
+LIBSSH_API int ssh_pki_export_privkey_base64(const ssh_key privkey,
+ const char *passphrase,
+ ssh_auth_callback auth_fn,
+ void *auth_data,
+ char **b64_key);
LIBSSH_API int ssh_pki_import_privkey_file(const char *filename,
const char *passphrase,
ssh_auth_callback auth_fn,