File tree Expand file tree Collapse file tree 10 files changed +15
-4
lines changed Expand file tree Collapse file tree 10 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ rust-version = "1.65.0"
23
23
asn1 = { version = " 0.20.0" , default-features = false }
24
24
pyo3 = { version = " 0.23.4" , features = [" abi3" ] }
25
25
openssl = " 0.10.69"
26
+ openssl-sys = " 0.9.104"
26
27
27
28
[profile .release ]
28
29
overflow-checks = true
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ cryptography-x509-verification = { path = "cryptography-x509-verification" }
20
20
cryptography-openssl = { path = " cryptography-openssl" }
21
21
pem = { version = " 3" , default-features = false }
22
22
openssl.workspace = true
23
- openssl-sys = " 0.9.104 "
23
+ openssl-sys.workspace = true
24
24
foreign-types-shared = " 0.1"
25
25
self_cell = " 1"
26
26
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ rust-version.workspace = true
8
8
9
9
[dependencies ]
10
10
pyo3.workspace = true
11
- openssl-sys = " 0.9.104 "
11
+ openssl-sys.workspace = true
12
12
13
13
[build-dependencies ]
14
14
cc = " 1.2.11"
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ rust-version.workspace = true
10
10
asn1.workspace = true
11
11
cfg-if = " 1"
12
12
openssl.workspace = true
13
- openssl-sys = " 0.9.104 "
13
+ openssl-sys.workspace = true
14
14
cryptography-x509 = { path = " ../cryptography-x509" }
15
15
16
16
[lints .rust ]
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ rust-version.workspace = true
9
9
[dependencies ]
10
10
cfg-if = " 1"
11
11
openssl.workspace = true
12
- ffi = { package = " openssl-sys" , version = " 0.9.101 " }
12
+ openssl-sys.workspace = true
13
13
foreign-types = " 0.3"
14
14
foreign-types-shared = " 0.1"
15
15
Original file line number Diff line number Diff line change 2
2
// 2.0, and the BSD License. See the LICENSE file in the root of this repository
3
3
// for complete details.
4
4
5
+ use openssl_sys as ffi;
6
+
5
7
use crate :: { cvt, cvt_p, OpenSSLResult } ;
6
8
use foreign_types_shared:: { ForeignType , ForeignTypeRef } ;
7
9
Original file line number Diff line number Diff line change 5
5
use std:: ptr;
6
6
7
7
use foreign_types_shared:: { ForeignType , ForeignTypeRef } ;
8
+ use openssl_sys as ffi;
8
9
9
10
use crate :: hmac:: DigestBytes ;
10
11
use crate :: { cvt, cvt_p, OpenSSLResult } ;
Original file line number Diff line number Diff line change 2
2
// 2.0, and the BSD License. See the LICENSE file in the root of this repository
3
3
// for complete details.
4
4
5
+ #[ cfg( not( any( CRYPTOGRAPHY_IS_LIBRESSL , CRYPTOGRAPHY_IS_BORINGSSL ) ) ) ]
6
+ use openssl_sys as ffi;
7
+
5
8
#[ cfg( CRYPTOGRAPHY_OPENSSL_300_OR_GREATER ) ]
6
9
use crate :: { cvt, OpenSSLResult } ;
7
10
#[ cfg( all(
Original file line number Diff line number Diff line change 5
5
use std:: ptr;
6
6
7
7
use foreign_types_shared:: { ForeignType , ForeignTypeRef } ;
8
+ use openssl_sys as ffi;
8
9
9
10
use crate :: { cvt, cvt_p, OpenSSLResult } ;
10
11
@@ -92,6 +93,7 @@ impl std::ops::Deref for DigestBytes {
92
93
#[ cfg( test) ]
93
94
mod tests {
94
95
use super :: DigestBytes ;
96
+ use openssl_sys as ffi;
95
97
96
98
#[ test]
97
99
fn test_digest_bytes ( ) {
Original file line number Diff line number Diff line change 4
4
5
5
use std:: mem:: MaybeUninit ;
6
6
7
+ use openssl_sys as ffi;
8
+
7
9
pub struct Poly1305State {
8
10
// The state data must be allocated in the heap so that its address does not change. This is
9
11
// because BoringSSL APIs that take a `poly1305_state*` ignore all the data before an aligned
You can’t perform that action at this time.
0 commit comments