File tree Expand file tree Collapse file tree 4 files changed +14
-3
lines changed
openssl-sys/src/handwritten Expand file tree Collapse file tree 4 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 1
1
use super :: super :: * ;
2
2
3
+ const_ptr_api ! {
4
+ extern "C" {
5
+ pub fn NCONF_new ( meth: #[ const_ptr_if( libressl400) ] CONF_METHOD ) -> * mut CONF ;
6
+ }
7
+ }
8
+
3
9
extern "C" {
4
- pub fn NCONF_new ( meth : * mut CONF_METHOD ) -> * mut CONF ;
10
+ # [ cfg ( not ( libressl400 ) ) ]
5
11
pub fn NCONF_default ( ) -> * mut CONF_METHOD ;
6
12
pub fn NCONF_free ( conf : * mut CONF ) ;
7
13
}
Original file line number Diff line number Diff line change @@ -472,6 +472,7 @@ pub struct X509V3_CTX {
472
472
subject_cert : * mut c_void ,
473
473
subject_req : * mut c_void ,
474
474
crl : * mut c_void ,
475
+ #[ cfg( not( libressl400) ) ]
475
476
db_meth : * mut c_void ,
476
477
db : * mut c_void ,
477
478
#[ cfg( ossl300) ]
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ fn main() {
31
31
println ! ( "cargo:rustc-check-cfg=cfg(libressl380)" ) ;
32
32
println ! ( "cargo:rustc-check-cfg=cfg(libressl382)" ) ;
33
33
println ! ( "cargo:rustc-check-cfg=cfg(libressl390)" ) ;
34
+ println ! ( "cargo:rustc-check-cfg=cfg(libressl400)" ) ;
34
35
35
36
println ! ( "cargo:rustc-check-cfg=cfg(ossl101)" ) ;
36
37
println ! ( "cargo:rustc-check-cfg=cfg(ossl102)" ) ;
@@ -112,6 +113,9 @@ fn main() {
112
113
if version >= 0x3_09_00_00_0 {
113
114
println ! ( "cargo:rustc-cfg=libressl390" ) ;
114
115
}
116
+ if version >= 0x4_00_00_00_0 {
117
+ println ! ( "cargo:rustc-cfg=libressl400" ) ;
118
+ }
115
119
}
116
120
117
121
if let Ok ( vars) = env:: var ( "DEP_OPENSSL_CONF" ) {
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ foreign_type_and_impl_send_sync! {
8
8
pub struct ConfRef ;
9
9
}
10
10
11
- #[ cfg( not( boringssl) ) ]
11
+ #[ cfg( not( any ( boringssl, libressl400 ) ) ) ]
12
12
mod methods {
13
13
use super :: Conf ;
14
14
use crate :: cvt_p;
@@ -61,5 +61,5 @@ mod methods {
61
61
}
62
62
}
63
63
}
64
- #[ cfg( not( boringssl) ) ]
64
+ #[ cfg( not( any ( boringssl, libressl400 ) ) ) ]
65
65
pub use methods:: * ;
You can’t perform that action at this time.
0 commit comments