From 2b1a9a7814293d50829a60d42f4e8f2ea0353bd7 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Sun, 29 Mar 2015 10:18:30 -0700 Subject: 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 --- openssl/src/lib.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'openssl/src/lib.rs') 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; -- cgit v1.2.3