diff options
| author | Steven Fackler <[email protected]> | 2015-03-29 10:18:30 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2015-03-29 10:18:30 -0700 |
| commit | 2b1a9a7814293d50829a60d42f4e8f2ea0353bd7 (patch) | |
| tree | 036c0d00d49c85bfdc9a8e320ec7e1dd63a8b04f /openssl/src/lib.rs | |
| parent | Merge pull request #191 from fhartwig/rustup (diff) | |
| download | rust-openssl-2b1a9a7814293d50829a60d42f4e8f2ea0353bd7.tar.xz rust-openssl-2b1a9a7814293d50829a60d42f4e8f2ea0353bd7.zip | |
Fix verify data free function
Turns out this is called with a null pointer if you never set the data
which didn't end up doing anything until the recent zeroing drop
changes.
Also use a map of indexes since statics in generic functions don't
monomorphize
Diffstat (limited to 'openssl/src/lib.rs')
| -rw-r--r-- | openssl/src/lib.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/openssl/src/lib.rs b/openssl/src/lib.rs index 90749fd8..beafdd91 100644 --- a/openssl/src/lib.rs +++ b/openssl/src/lib.rs @@ -1,15 +1,16 @@ -#![feature(unsafe_destructor, core, io, std_misc, unique)] +#![feature(unsafe_destructor, core, io, std_misc, unique, collections)] #![doc(html_root_url="https://sfackler.github.io/rust-openssl/doc/openssl")] #[macro_use] extern crate bitflags; - extern crate libc; +#[macro_use] +extern crate lazy_static; +extern crate openssl_sys as ffi; + #[cfg(test)] extern crate rustc_serialize as serialize; -extern crate openssl_sys as ffi; - mod macros; pub mod asn1; |