File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,9 @@ fn main() {
50
50
if version >= 0x3_00_00_00_0 {
51
51
println ! ( "cargo:rustc-cfg=ossl300" ) ;
52
52
}
53
+ if version >= 0x3_01_00_00_0 {
54
+ println ! ( "cargo:rustc-cfg=ossl310" ) ;
55
+ }
53
56
}
54
57
55
58
if let Ok ( version) = env:: var ( "DEP_OPENSSL_LIBRESSL_VERSION_NUMBER" ) {
Original file line number Diff line number Diff line change @@ -401,9 +401,12 @@ cfg_if! {
401
401
402
402
#[ cfg( test) ]
403
403
mod tests {
404
+ #[ cfg( not( ossl310) ) ]
404
405
use crate :: nid:: Nid ;
405
406
406
407
#[ test]
408
+ // Due to a bug in OpenSSL 3.1.0, this test can hang there. Skip for now.
409
+ #[ cfg( not( ossl310) ) ]
407
410
fn test_error_library_code ( ) {
408
411
let stack = Nid :: create ( "not-an-oid" , "invalid" , "invalid" ) . unwrap_err ( ) ;
409
412
let errors = stack. errors ( ) ;
You can’t perform that action at this time.
0 commit comments