summaryrefslogtreecommitdiff
path: root/libssh2-sys/lib.rs
diff options
context:
space:
mode:
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,