-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
259: [v0.8] Move `self test, threading, time` code to crate `mbedtls-platform-support` r=arai-fortanix a=Taowyoo This PR back-port changes in - #254 into `v0.8` branch 2. Bump `rust-mbedtls` version to `0.8.3` The patch in root `Cargo.toml` file will be removed once #254 is merged and new crates have been published to crates.io Co-authored-by: bors[bot] <26634292+bors[bot]@users.noreply.github.com> Co-authored-by: Yuxiang Cao <[email protected]>
- Loading branch information
Showing
12 changed files
with
176 additions
and
337 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[workspace] | ||
members = ["mbedtls", "mbedtls-sys"] | ||
members = ["mbedtls"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "mbedtls" | ||
version = "0.8.2" | ||
version = "0.8.3" | ||
authors = ["Jethro Beekman <[email protected]>"] | ||
build = "build.rs" | ||
edition = "2018" | ||
|
@@ -20,7 +20,6 @@ keywords = ["MbedTLS","mbed","TLS","SSL","cryptography"] | |
[dependencies] | ||
bitflags = "1" | ||
core_io = { version = "0.1", features = ["collections"], optional = true } | ||
spin = { version = "0.4.0", default-features = false, optional = true } | ||
serde = { version = "1.0.7", default-features = false } | ||
serde_derive = "1.0.7" | ||
byteorder = "1.0.0" | ||
|
@@ -33,13 +32,14 @@ cfg-if = "1.0.0" | |
|
||
[target.x86_64-fortanix-unknown-sgx.dependencies] | ||
rs-libc = "0.2.0" | ||
chrono = "0.4" | ||
|
||
[dependencies.mbedtls-sys-auto] | ||
version = "2.25.0" | ||
default-features = false | ||
features = ["custom_printf", "trusted_cert_callback", "threading"] | ||
path = "../mbedtls-sys" | ||
features = ["trusted_cert_callback", "threading"] | ||
|
||
[dependencies.mbedtls-platform-support] | ||
version = "0.1" | ||
|
||
[dev-dependencies] | ||
libc = "0.2.0" | ||
|
@@ -51,19 +51,20 @@ hyper = { version = "0.10.16", default-features = false } | |
|
||
[build-dependencies] | ||
cc = "1.0" | ||
rustc_version = "0.2" | ||
|
||
[features] | ||
# Features are documented in the README | ||
default = ["std", "aesni", "time", "padlock"] | ||
std = ["mbedtls-sys-auto/std", "serde/std", "yasna"] | ||
std = ["mbedtls-sys-auto/std", "serde/std", "yasna", "mbedtls-platform-support/std"] | ||
debug = ["mbedtls-sys-auto/debug"] | ||
no_std_deps = ["core_io", "spin"] | ||
force_aesni_support = ["mbedtls-sys-auto/custom_has_support", "mbedtls-sys-auto/aes_alt", "aesni"] | ||
no_std_deps = ["core_io", "mbedtls-platform-support/spin"] | ||
force_aesni_support = ["mbedtls-platform-support/force_aesni_support", "mbedtls-sys-auto/custom_has_support", "mbedtls-sys-auto/aes_alt", "aesni"] | ||
mpi_force_c_code = ["mbedtls-sys-auto/mpi_force_c_code"] | ||
rdrand = [] | ||
aesni = ["mbedtls-sys-auto/aesni"] | ||
aesni = ["mbedtls-platform-support/aesni"] | ||
zlib = ["mbedtls-sys-auto/zlib"] | ||
time = ["mbedtls-sys-auto/time"] | ||
time = ["mbedtls-platform-support/time"] | ||
padlock = ["mbedtls-sys-auto/padlock"] | ||
dsa = ["std", "yasna", "num-bigint", "bit-vec"] | ||
pkcs12 = ["std", "yasna"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.