@@ -110,11 +110,15 @@ pub fn run_boringssl(include_dirs: &[PathBuf]) {
110
110
let mut builder = bindgen:: builder ( )
111
111
. rust_target ( RustTarget :: Stable_1_47 )
112
112
. ctypes_prefix ( "::libc" )
113
+ . raw_line ( "use libc::*;" )
113
114
. derive_default ( false )
114
115
. enable_function_attribute_detection ( )
115
116
. default_macro_constant_type ( MacroTypeVariation :: Signed )
116
117
. rustified_enum ( "point_conversion_form_t" )
117
118
. allowlist_file ( ".*/openssl/[^/]+\\ .h" )
119
+ . allowlist_recursively ( false )
120
+ . blocklist_function ( "BIO_vsnprintf" )
121
+ . blocklist_function ( "OPENSSL_vasprintf" )
118
122
. wrap_static_fns ( true )
119
123
. wrap_static_fns_path ( out_dir. join ( "boring_static_wrapper" ) . display ( ) . to_string ( ) )
120
124
. layout_tests ( false )
@@ -165,11 +169,15 @@ pub fn run_boringssl(include_dirs: &[PathBuf]) {
165
169
. arg ( out_dir. join ( "bindgen.rs" ) )
166
170
. arg ( "--rust-target=1.47" )
167
171
. arg ( "--ctypes-prefix=::libc" )
172
+ . arg ( "--raw-line=use libc::*;" )
168
173
. arg ( "--no-derive-default" )
169
174
. arg ( "--enable-function-attribute-detection" )
170
175
. arg ( "--default-macro-constant-type=signed" )
171
176
. arg ( "--rustified-enum=point_conversion_form_t" )
172
177
. arg ( "--allowlist-file=.*/openssl/[^/]+\\ .h" )
178
+ . arg ( "--no-recursive-allowlist" )
179
+ . arg ( "--blocklist-function=BIO_vsnprintf" )
180
+ . arg ( "--blocklist-function=OPENSSL_vasprintf" )
173
181
. arg ( "--experimental" )
174
182
. arg ( "--wrap-static-fns" )
175
183
. arg ( "--wrap-static-fns-path" )
0 commit comments