summaryrefslogtreecommitdiff
path: root/libssh2-sys/lib.rs
diff options
context:
space:
mode:
authorEldad Zack <eldad@fogrefinery.com>2018-02-15 21:39:46 +0100
committerEldad Zack <eldad@fogrefinery.com>2018-02-16 17:58:50 +0100
commit8528c093bd703e91ca2821676de9a59dcba2581b (patch)
tree762eed73a323228dade0d2311b38f66975c444ae /libssh2-sys/lib.rs
parent3c521f49847f4145c682b9e1675266ed59c69881 (diff)
downloadssh2-rs-8528c093bd703e91ca2821676de9a59dcba2581b.zip
Support in-memory keypair.
Diffstat (limited to 'libssh2-sys/lib.rs')
-rw-r--r--libssh2-sys/lib.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/libssh2-sys/lib.rs b/libssh2-sys/lib.rs
index b2e4ef1..d216419 100644
--- a/libssh2-sys/lib.rs
+++ b/libssh2-sys/lib.rs
@@ -397,6 +397,15 @@ extern {
privatekey: *const c_char,
passphrase: *const c_char)
-> c_int;
+ pub fn libssh2_userauth_publickey_frommemory(sess: *mut LIBSSH2_SESSION,
+ username: *const c_char,
+ username_len: size_t,
+ publickeydata: *const c_char,
+ publickeydata_len: size_t,
+ privatekeydata: *const c_char,
+ privatekeydata_len: size_t,
+ passphrase: *const c_char)
+ -> c_int;
pub fn libssh2_userauth_password_ex(session: *mut LIBSSH2_SESSION,
username: *const c_char,
username_len: c_uint,