Skip to content

Commit

Permalink
Try #127:
Browse files Browse the repository at this point in the history
  • Loading branch information
bors[bot] authored Mar 13, 2023
2 parents e9a14e4 + 8b17c8f commit b08a15f
Show file tree
Hide file tree
Showing 11 changed files with 1,087 additions and 13 deletions.
17 changes: 17 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions ct.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ if [ $TRAVIS_RUST_VERSION = "stable" ] || [ $TRAVIS_RUST_VERSION = "beta" ] || [
rustup default $TRAVIS_RUST_VERSION
# make sure that explicitly providing the default target works
cargo test --target x86_64-unknown-linux-gnu
cargo test --release
cargo test --features spin_threading
cargo test --features rust_threading
cargo test --features custom_time,custom_gmtime_r
Expand Down
11 changes: 11 additions & 0 deletions mbedtls/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ num-bigint = { version = "0.2", optional = true }
bit-vec = { version = "0.5", optional = true }
block-modes = { version = "0.3", optional = true }
rc2 = { version = "0.3", optional = true }
tokio = { version = "0.3", optional = true }

[target.x86_64-fortanix-unknown-sgx.dependencies]
rs-libc = "0.1.0"
Expand Down Expand Up @@ -83,6 +84,16 @@ name = "server"
path = "examples/server.rs"
required-features = ["std"]

[[test]]
name = "alpn"
path = "tests/alpn.rs"
required-features = ["std"]

[[test]]
name = "async_session"
path = "tests/async_session.rs"
required-features = ["std", "threading", "tokio", "tokio/net", "tokio/io-util", "tokio/macros"]

[[test]]
name = "client_server"
path = "tests/client_server.rs"
Expand Down
3 changes: 3 additions & 0 deletions mbedtls/src/rng/ctr_drbg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ impl<'entropy> DerefMut for CtrDrbg<'entropy> {

// ==== END IMMOVABLE TYPE KLUDGE ====

#[cfg(feature = "threading")]
unsafe impl<'entropy> Send for CtrDrbg<'entropy> {}

#[cfg(feature = "threading")]
unsafe impl<'entropy> Sync for CtrDrbg<'entropy> {}

Expand Down
Loading

0 comments on commit b08a15f

Please sign in to comment.