diff options
author | Alex Crichton <alex@alexcrichton.com> | 2018-02-16 21:29:45 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-16 21:29:45 -0600 |
commit | 00067c96dd60a1e7180895886f0bac3761a3f40c (patch) | |
tree | 762eed73a323228dade0d2311b38f66975c444ae /libssh2-sys | |
parent | 3c521f49847f4145c682b9e1675266ed59c69881 (diff) | |
parent | 8528c093bd703e91ca2821676de9a59dcba2581b (diff) | |
download | ssh2-rs-00067c96dd60a1e7180895886f0bac3761a3f40c.zip |
Merge pull request #80 from eldad/master
Support in-memory keypair.
Diffstat (limited to 'libssh2-sys')
-rw-r--r-- | libssh2-sys/lib.rs | 9 |
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, |