Skip to content

Commit

Permalink
Add implementation for mbedtls
Browse files Browse the repository at this point in the history
Resolves #211
  • Loading branch information
zvolin committed May 4, 2023
1 parent fe55a47 commit a5947b2
Show file tree
Hide file tree
Showing 4 changed files with 468 additions and 360 deletions.
13 changes: 10 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,22 @@ tempfile = "3.1.0"
[target.'cfg(target_os = "windows")'.dependencies]
schannel = "0.1.17"

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

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

[dev-dependencies]
lazy_static = "1.4.0"
tempfile = "3.0"
test-cert-gen = "0.9"
ureq = "2.6"
Loading

0 comments on commit a5947b2

Please sign in to comment.