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 @@ -370,7 +370,7 @@ extern "C" {
370
370
pub fn EVP_aes_256_wrap ( ) -> * const EVP_CIPHER ;
371
371
#[ cfg( ossl110) ]
372
372
pub fn EVP_aes_256_wrap_pad ( ) -> * const EVP_CIPHER ;
373
- #[ cfg( all( ossl110, not( osslconf = "OPENSSL_NO_CHACHA" ) ) ) ]
373
+ #[ cfg( all( any ( ossl110, libressl ) , not( osslconf = "OPENSSL_NO_CHACHA" ) ) ) ]
374
374
pub fn EVP_chacha20 ( ) -> * const EVP_CIPHER ;
375
375
#[ cfg( all( any( ossl110, libressl360) , not( osslconf = "OPENSSL_NO_CHACHA" ) ) ) ]
376
376
pub fn EVP_chacha20_poly1305 ( ) -> * const EVP_CIPHER ;
Original file line number Diff line number Diff line change @@ -453,7 +453,7 @@ impl Cipher {
453
453
unsafe { CipherRef :: from_ptr ( ffi:: EVP_idea_cbc ( ) as * mut _ ) }
454
454
}
455
455
456
- #[ cfg( all( ossl110, not( osslconf = "OPENSSL_NO_CHACHA" ) ) ) ]
456
+ #[ cfg( all( any ( ossl110, libressl ) , not( osslconf = "OPENSSL_NO_CHACHA" ) ) ) ]
457
457
pub fn chacha20 ( ) -> & ' static CipherRef {
458
458
unsafe { CipherRef :: from_ptr ( ffi:: EVP_chacha20 ( ) as * mut _ ) }
459
459
}
Original file line number Diff line number Diff line change @@ -383,7 +383,7 @@ impl Cipher {
383
383
}
384
384
385
385
/// Requires OpenSSL 1.1.0 or newer.
386
- #[ cfg( all( ossl110, not( osslconf = "OPENSSL_NO_CHACHA" ) ) ) ]
386
+ #[ cfg( all( any ( ossl110, libressl ) , not( osslconf = "OPENSSL_NO_CHACHA" ) ) ) ]
387
387
pub fn chacha20 ( ) -> Cipher {
388
388
unsafe { Cipher ( ffi:: EVP_chacha20 ( ) ) }
389
389
}
@@ -1592,7 +1592,7 @@ mod tests {
1592
1592
}
1593
1593
1594
1594
#[ test]
1595
- #[ cfg( ossl110) ]
1595
+ #[ cfg( any ( ossl110, libressl373 ) ) ]
1596
1596
fn test_chacha20 ( ) {
1597
1597
let key = "0000000000000000000000000000000000000000000000000000000000000000" ;
1598
1598
let iv = "00000000000000000000000000000000" ;
You can’t perform that action at this time.
0 commit comments