summaryrefslogtreecommitdiff
path: root/libssh2-sys
AgeCommit message (Collapse)Author
2021-02-01Prepare ssh2 0.9.1 and libssh2-sys 0.2.21 releaseMatteo Bigoi
2021-02-01Expose libssh2_trace function (#209)Mike Harris
* Expose libssh2_trace function and associated constants, to allow enabling libssh2 trace output. * set LIBSSH2_WIN32 on windows build so that gettimeofday replacement will be compiled. * libssh2_trace actually returns int, even though the documentation says it returns void. This was causing systest to fail. Changed the FFI to match the C function. Co-authored-by: eharmic <michael.harris@ericsson.com>
2020-11-22Update libssh2 submodule to track back from ↵Matteo Bigoi
https://github.com/libssh2/libssh2 (#205) * Update libssh2 submodule to track back from https://github.com/libssh2/libssh2 * Update sys crate to track latest change from https://github.com/libssh2/libssh2
2020-11-22Handle more precise SFTP error codes (#203)Matteo Bigoi
* Handle more precise SFTP error codes * Allow set-env in macos github action * Bump to 0.9 since the Error interface has changed, hence this is a breaking change
2020-08-18libssh2-sys: Add support for zlib-ng (#197)Josh Triplett
Update to libz-sys 1.1.0, which supports zlib-ng. Provide a feature zlib-ng-compat to allow building with zlib-ng. Since doing so statically links zlib-ng, ensure that this feature prevents using a system libssh2.
2020-06-29gersion bump to reflect bundled libssh2 changeWez Furlong
refs: https://github.com/alexcrichton/ssh2-rs/issues/187 refs: https://github.com/alexcrichton/ssh2-rs/issues/191
2020-06-29libssh2: update submoduleWez Furlong
This points to a copy of https://github.com/libssh2/libssh2/pull/484 that I stashed in my fork. We'll keep pointing to this until the feature is merged and once it is released we can retire my fork. refs: https://github.com/alexcrichton/ssh2-rs/issues/187 refs: https://github.com/wez/libssh2/pull/2 refs: https://github.com/alexcrichton/ssh2-rs/issues/191
2020-04-26revert #170Wez Furlong
This caused fairly widespread problems and it seems that the original issue that led to this change (https://github.com/rust-lang/rust/issues/69552) should really be fixed by better defining the data exported from eg: libz-sys rather than having downstream crates replicating the same logic from inside that crate. refs: https://github.com/alexcrichton/ssh2-rs/issues/174 refs: https://github.com/alexcrichton/ssh2-rs/pull/170 refs: https://github.com/alexcrichton/ssh2-rs/issues/169 refs: https://github.com/rust-lang/rust/issues/69552
2020-04-25build: Announce environment variable usage to Cargochrysn
This was primarily done to address issues from changing LIBSSH_SYS_USE_PKG_CONFIG, but it's good build script practice to let Cargo know of every used environment variable. Closes: https://github.com/alexcrichton/ssh2-rs/issues/171
2020-04-25vcpkg: Support openssl 1.1 linkageoblique
2020-03-04bump version number to release fix for #169Wez Furlong
2020-03-04attempt to use pkg-config to get include path for zlib and openssl if not ↵Mark Karpeles
set in env
2020-02-22Add Channel::request_auth_agent_forwardingWez Furlong
This method enables agent forwarding
2020-02-08Update for revised win10 DH fixWez Furlong
2020-01-14Bump libssh2-sys to 0.2.14Alex Crichton
2020-01-11fix: define libssh2_socket_t using pointer width for aarch64 windowsHarrison Metzger
2020-01-03export block directionsbold
2019-11-06fix cargo doc linkWez Furlong
closes https://github.com/alexcrichton/ssh2-rs/issues/142
2019-10-20version bumpsWez Furlong
This is largely to accomodate making Session Send again, so go from 0.4 -> 0.5.
2019-10-20migrate std::sync::ONCE_INIT -> std::sync::Once::newWez Furlong
2019-09-15Add myself to authors list(s)Wez Furlong
The fact that I overlooked this prior to the 0.4.0 release says something about my humility or my attention to detail. You decide!
2019-09-15pull in stdcall linkage fix from my libssh2 PRWez Furlong
2019-09-15link with ntdllWez Furlong
2019-09-15more experimenting to find vs and windows versions with RtlGetVersionWez Furlong
2019-09-15more fun with windows versionsWez Furlong
2019-09-15add ntoskrnl on windows as wellWez Furlong
hopefully this will make the i686 build a little happier on appveyor
2019-09-15link ntdll on windows for RtlGetVersionWez Furlong
2019-09-15Fix Windows 10 wincng issueWez Furlong
Since it's unclear when this fix will be reviewed upstream, let's make a branch that can be pointed to the fix in the meantime. Refs https://github.com/alexcrichton/ssh2-rs/issues/122
2019-08-02handle_extended_dataWez Furlong
Add a function to configure how extended data streams are to be handled. This allows for merging stderr to stdout, or discarding it.
2019-08-01revert accidental libssh2 commitWez Furlong
I took pains to not stage it, but git added it anyway... This should put us back on the original hash for now.
2019-08-01move tcpstream assignment to its own functionWez Furlong
The recent move to take ownership of TcpStream exposed an issue with the `handshake` method: if the stream is non-blocking then it may take several attempts to handshake, but only the first one is able to transfer ownership. My initial thought was just to make the TcpStream a required parameter to `new`, but we have some tests that work with known hosts and the ssh agent that don't require a tcpstream. I'm going to review those and see if there is a cleaner overall solution, but that will likely require more substantial API changes. For now, the simplest change is to add a separate `set_tcp_stream` function to make the stream ownership transfer explicit and distinct from the handshake. Refs: https://github.com/alexcrichton/ssh2-rs/issues/17
2019-07-31Support keyboard-interactive authenticationWez Furlong
Refs: https://github.com/alexcrichton/ssh2-rs/issues/65
2019-07-31Fix scp_recv ABI issue on WindowsWez Furlong
* Adopt scp_recv2 instead, which uses compatible 64-bit stat types * Mark scp_recv as deprecated * small version bump Fixes https://github.com/alexcrichton/ssh2-rs/issues/109 Refs https://github.com/alexcrichton/ssh2-rs/pull/117 Co-authored-by: Joyce Babu <joyce@ennexa.com>
2019-07-29cargo fmtWez Furlong
No functional changes, just formatting
2019-07-29libssh2-sys: add `vendored-openssl` feature to build openssl-srcWez Furlong
This enables building `ssh2` and `libssh2-sys` with the `vendored-openssl` feature, which in turn causes openssl to be built and linked locally, and does not require that homebrew or some other externally provided version of openssl be made available. It does require a working C compiler, perl and make.
2019-07-29Expose more known_hosts related constantsWez Furlong
This brings us up to date with the current set of host key and known host key enum variants so that we can parse and edit current known_hosts files. This also adds a convenience `From` impl that allows converting from the host key type to a known hosts entry type.
2019-04-18Define HAVE_POLL for everything except for Windows (#111)Marton Suranyi
Fixes #110
2019-01-22Define HAVE_POLL for Haiku (#103)Niels Sascha Reedijk
This change is required to compile session.c
2019-01-02Define LIBSSH2_DH_GEX_NEW to avoid KEX error (#100)Brian Olsen
When LIBSSH2_DH_GEX_NEW is not defined LIBSSH2 will use an old diffie-hellman-group-exchange-sha1 syntax that has been removed from newer versions of OpenSSH.
2018-09-13Bump libssh2-sys to 0.2.11Alex Crichton
2018-09-13Remove `cmake` dependency in favor of `cc` (#94)Alex Crichton
* Remove `cmake` dependency in favor of `cc` This has been done in a few other projects and has made it lightyears easier to compile native C code, so let's do it here! More info at alexcrichton/curl-rust#225
2018-08-06Bump libssh2-sys to 0.2.10Alex Crichton
2018-08-06Don't enable zlib compression on WindowsAlex Crichton
I don't really want to futz with pkg-config, building on all platforms is a nightmare.
2018-08-05Bump to 0.2.9Alex Crichton
2018-08-05Fix a constant valueAlex Crichton
2018-08-05Move to libssh2 with `no-engine` supportAlex Crichton
2018-07-13Bump libssh2-sys to 0.2.8Alex Crichton
2018-07-13Increase libz-sys version depAlex Crichton
2018-07-13Increase pkg-config version depAlex Crichton
Older versions no longer build!
2018-07-02Merge pull request #88 from Timmmm/patch-1Alex Crichton
Add LIBSSH2_SYS_USE_PKG_CONFIG env var