Skip to content

Commit 999dd6b

Browse files
committed
Add implementation for mbedtls
Resolves sfackler#211
1 parent fe55a47 commit 999dd6b

File tree

4 files changed

+408
-363
lines changed

4 files changed

+408
-363
lines changed

Cargo.toml

+9-3
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,21 @@ 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 = "gnu")))'.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 = "gnu")'.dependencies]
36+
mbedtls = { version = "0.9", features = ["std", "rdrand", "mpi_force_c_code" ], default-features = false }
37+
mbedtls-sys-auto = { version = "2.28.0", default-features = false }
38+
pkcs5 = { version = "0.7.1", features = ["alloc", "pbes2"] }
39+
p12 = "0.6.3"
40+
yasna = "0.5"
3741

3842
[dev-dependencies]
43+
lazy_static = "1.4.0"
3944
tempfile = "3.0"
4045
test-cert-gen = "0.9"
46+
ureq = "2.6"

0 commit comments

Comments
 (0)