diff options
| author | Steven Fackler <[email protected]> | 2015-11-28 16:15:16 -0800 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2015-11-28 16:15:16 -0800 |
| commit | badec803cb9e496e8c6a6ca5a00bbdc3180fb4f6 (patch) | |
| tree | b491290d3ed0e2cb5e22876582db083cf82bf46b /openssl-sys | |
| parent | Merge branch 'release-v0.7.0' into release (diff) | |
| parent | Release v0.7.1 (diff) | |
| download | rust-openssl-0.7.1.tar.xz rust-openssl-0.7.1.zip | |
Merge branch 'release-v0.7.1' into releasev0.7.1
Diffstat (limited to 'openssl-sys')
| -rw-r--r-- | openssl-sys/Cargo.toml | 5 | ||||
| -rw-r--r-- | openssl-sys/build.rs | 8 | ||||
| -rw-r--r-- | openssl-sys/src/lib.rs | 3 |
3 files changed, 9 insertions, 7 deletions
diff --git a/openssl-sys/Cargo.toml b/openssl-sys/Cargo.toml index 6d625e7a..17e4647f 100644 --- a/openssl-sys/Cargo.toml +++ b/openssl-sys/Cargo.toml @@ -1,12 +1,12 @@ [package] name = "openssl-sys" -version = "0.7.0" +version = "0.7.1" authors = ["Alex Crichton <[email protected]>", "Steven Fackler <[email protected]>"] license = "MIT" description = "FFI bindings to OpenSSL" repository = "https://github.com/sfackler/rust-openssl" -documentation = "https://sfackler.github.io/rust-openssl/doc/v0.7.0/openssl_sys" +documentation = "https://sfackler.github.io/rust-openssl/doc/v0.7.1/openssl_sys" links = "openssl" build = "build.rs" @@ -29,7 +29,6 @@ libc = "0.2" [build-dependencies] pkg-config = "0.3" -gcc = "0.3" [target.le32-unknown-nacl.dependencies] libressl-pnacl-sys = "2.1.0" diff --git a/openssl-sys/build.rs b/openssl-sys/build.rs index bd9611c0..0e3a76d2 100644 --- a/openssl-sys/build.rs +++ b/openssl-sys/build.rs @@ -1,5 +1,4 @@ extern crate pkg_config; -extern crate gcc; use std::env; @@ -16,8 +15,11 @@ fn main() { // rustc doesn't seem to work with pkg-config's output in mingw64 if !target.contains("windows") { if let Ok(info) = pkg_config::find_library("openssl") { - let paths = env::join_paths(info.include_paths).unwrap(); - println!("cargo:include={}", paths.to_str().unwrap()); + // avoid empty include paths as they are not supported by GCC + if info.include_paths.len() > 0 { + let paths = env::join_paths(info.include_paths).unwrap(); + println!("cargo:include={}", paths.to_str().unwrap()); + } return; } } diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs index 018f8bca..0f40bfed 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -1,6 +1,6 @@ #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] #![allow(dead_code)] -#![doc(html_root_url="https://sfackler.github.io/rust-openssl/doc/v0.7.0")] +#![doc(html_root_url="https://sfackler.github.io/rust-openssl/doc/v0.7.1")] extern crate libc; @@ -482,6 +482,7 @@ extern "C" { pub fn RAND_bytes(buf: *mut u8, num: c_int) -> c_int; + pub fn RSA_free(rsa: *mut RSA); pub fn RSA_generate_key(modsz: c_int, e: c_ulong, cb: *const c_void, cbarg: *const c_void) -> *mut RSA; pub fn RSA_generate_key_ex(rsa: *mut RSA, bits: c_int, e: *mut BIGNUM, cb: *const c_void) -> c_int; pub fn RSA_private_decrypt(flen: c_int, from: *const u8, to: *mut u8, k: *mut RSA, |