File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
openssl-sys/src/handwritten Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -367,7 +367,7 @@ extern "C" {
367
367
pub fn EVP_aes_256_wrap_pad ( ) -> * const EVP_CIPHER ;
368
368
#[ cfg( all( ossl110, not( osslconf = "OPENSSL_NO_CHACHA" ) ) ) ]
369
369
pub fn EVP_chacha20 ( ) -> * const EVP_CIPHER ;
370
- #[ cfg( all( ossl110, not( osslconf = "OPENSSL_NO_CHACHA" ) ) ) ]
370
+ #[ cfg( all( any ( ossl110, libressl360 ) , not( osslconf = "OPENSSL_NO_CHACHA" ) ) ) ]
371
371
pub fn EVP_chacha20_poly1305 ( ) -> * const EVP_CIPHER ;
372
372
#[ cfg( not( osslconf = "OPENSSL_NO_SEED" ) ) ]
373
373
pub fn EVP_seed_cbc ( ) -> * const EVP_CIPHER ;
Original file line number Diff line number Diff line change @@ -435,7 +435,7 @@ impl Cipher {
435
435
unsafe { CipherRef :: from_ptr ( ffi:: EVP_chacha20 ( ) as * mut _ ) }
436
436
}
437
437
438
- #[ cfg( all( ossl110, not( osslconf = "OPENSSL_NO_CHACHA" ) ) ) ]
438
+ #[ cfg( all( any ( ossl110, libressl360 ) , not( osslconf = "OPENSSL_NO_CHACHA" ) ) ) ]
439
439
pub fn chacha20_poly1305 ( ) -> & ' static CipherRef {
440
440
unsafe { CipherRef :: from_ptr ( ffi:: EVP_chacha20_poly1305 ( ) as * mut _ ) }
441
441
}
Original file line number Diff line number Diff line change @@ -295,7 +295,7 @@ impl Cipher {
295
295
}
296
296
297
297
/// Requires OpenSSL 1.1.0 or newer.
298
- #[ cfg( all( ossl110, not( osslconf = "OPENSSL_NO_CHACHA" ) ) ) ]
298
+ #[ cfg( all( any ( ossl110, libressl360 ) , not( osslconf = "OPENSSL_NO_CHACHA" ) ) ) ]
299
299
pub fn chacha20_poly1305 ( ) -> Cipher {
300
300
unsafe { Cipher ( ffi:: EVP_chacha20_poly1305 ( ) ) }
301
301
}
@@ -1493,7 +1493,7 @@ mod tests {
1493
1493
}
1494
1494
1495
1495
#[ test]
1496
- #[ cfg( ossl110) ]
1496
+ #[ cfg( any ( ossl110, libressl360 ) ) ]
1497
1497
fn test_chacha20_poly1305 ( ) {
1498
1498
let key = "808182838485868788898a8b8c8d8e8f909192939495969798999a9b9c9d9e9f" ;
1499
1499
let iv = "070000004041424344454647" ;
You can’t perform that action at this time.
0 commit comments