File tree 1 file changed +7
-10
lines changed
1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change 6
6
non_upper_case_globals,
7
7
unused_imports
8
8
) ]
9
- #![ cfg_attr( feature = "unstable_boringssl" , allow( ambiguous_glob_reexports) ) ]
10
9
#![ doc( html_root_url = "https://docs.rs/openssl-sys/0.9" ) ]
11
10
#![ recursion_limit = "128" ] // configure fixed limit across all rust versions
12
11
@@ -15,21 +14,19 @@ pub use libc::c_int;
15
14
16
15
#[ cfg( feature = "unstable_boringssl" ) ]
17
16
extern crate bssl_sys;
18
- #[ cfg( feature = "unstable_boringssl" ) ]
19
- pub use bssl_sys:: * ;
20
17
21
- #[ cfg( all ( boringssl, not ( feature = "unstable_boringssl" ) ) ) ]
18
+ #[ cfg( boringssl) ]
22
19
#[ path = "." ]
23
20
mod boringssl {
21
+ #[ cfg( feature = "unstable_boringssl" ) ]
22
+ pub use bssl_sys:: * ;
23
+ #[ cfg( not( feature = "unstable_boringssl" ) ) ]
24
24
include ! ( concat!( env!( "OUT_DIR" ) , "/bindgen.rs" ) ) ;
25
25
26
- pub fn init ( ) {
27
- unsafe {
28
- CRYPTO_library_init ( ) ;
29
- }
30
- }
26
+ // BoringSSL does not require initialization.
27
+ pub fn init ( ) { }
31
28
}
32
- #[ cfg( all ( boringssl, not ( feature = "unstable_boringssl" ) ) ) ]
29
+ #[ cfg( boringssl) ]
33
30
pub use boringssl:: * ;
34
31
35
32
#[ cfg( openssl) ]
You can’t perform that action at this time.
0 commit comments