Skip to content

Commit a5947b2

Browse files
committed
Add implementation for mbedtls
Resolves #211
1 parent fe55a47 commit a5947b2

File tree

4 files changed

+468
-360
lines changed

4 files changed

+468
-360
lines changed

Cargo.toml

+10-3
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,22 @@ tempfile = "3.1.0"
2626
[target.'cfg(target_os = "windows")'.dependencies]
2727
schannel = "0.1.17"
2828

29-
[target.'cfg(not(any(target_os = "windows", target_os = "macos", target_os = "ios", target_os = "espidf")))'.dependencies]
29+
[target.'cfg(not(any(target_os = "windows", target_os = "macos", target_os = "ios", target_env = "sgx")))'.dependencies]
3030
log = "0.4.5"
3131
openssl = "0.10.29"
3232
openssl-sys = "0.9.55"
3333
openssl-probe = "0.1"
3434

35-
[target.'cfg(target_os = "espidf")'.dependencies]
36-
mbedtls = { version = "0.8.1", features = ["pkcs12", "std"], path = "/home/mabez/development/rust/embedded/util/rust-mbedtls/mbedtls" }
35+
[target.'cfg(target_env = "sgx")'.dependencies]
36+
mbedtls = { version = "0.8.1", features = ["pkcs12", "pkcs12_rc2", "std", "rdrand", "mpi_force_c_code" ], default-features = false }
37+
mbedtls-sys-auto = { version = "2.26.1", default-features = false }
38+
parking_lot = "0.12"
39+
p12 = "0.6.3"
40+
yasna = "0.5"
41+
pkcs5 = { version = "0.7.1", features = ["alloc", "pbes2"] }
3742

3843
[dev-dependencies]
44+
lazy_static = "1.4.0"
3945
tempfile = "3.0"
4046
test-cert-gen = "0.9"
47+
ureq = "2.6"

0 commit comments

Comments
 (0)