Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Async tls support #5

Merged
merged 5 commits into from
Oct 12, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

- name: Compile ${{ github.repository }}
run:
cargo build && cargo build --bin spdm
cargo build && cargo build -p spdm
csyJoy marked this conversation as resolved.
Show resolved Hide resolved
env:
HOME: /root

Expand Down
198 changes: 184 additions & 14 deletions Cargo.lock

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

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ members = [
]
default-members = [
"rats-rs",
"examples/*",
]
resolver = "2"

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ rats-rs是一个纯Rust实现的TEE远程证明库,它的最终目标是让开

just prepare-repo

cargo build --bin spdm
cargo build -p spdm
```

3. 运行Server端程序
Expand Down
2 changes: 1 addition & 1 deletion examples/openssl-hook/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ env_logger = {workspace = true}
libc = "0.2"
anyhow = {workspace = true}
lazy_static = "1.5"
rats-rs = {path = "../../rats-rs", features = ["is-sync"]}
rats-rs = {path = "../../rats-rs", features = ["transport-tls"]}
15 changes: 15 additions & 0 deletions examples/rustls/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[package]
name = "rustls"
edition.workspace = true
version.workspace = true
readme.workspace = true
license.workspace = true

[dependencies]
rats-rs = {path = "../../rats-rs", default-features = false, features = ["base", "transport-rustls"]}
env_logger = {workspace = true}
clap = {version = "4.5.4", features = ["derive"]}
anyhow = {workspace = true}
log = {workspace = true}
rand = {version = "0.8.5", features = ["small_rng"]}
tokio = {version = "1.36.0", features = ["full"]}
Loading
Loading