-
Notifications
You must be signed in to change notification settings - Fork 4
Code for QUIC support #24
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
base: main
Are you sure you want to change the base?
Changes from all commits
49d2fce
3b6baae
d8eb6c5
c1bdc1a
9143871
ef849ed
8b34946
cd879e1
3bfcf11
9ebcf7a
b5e14d3
afb2ffd
8291d46
560944e
35686aa
bdd5acb
b0ed669
ea2ec86
7d5a50b
2d63a95
bdef49c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The same comments apply to
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would consider moving the
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. One thing that I noticed is that you compile and run the tests with I think the command to run the testsuite with only the wolfcrypt provider (which is already compiled in) is:
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Me and Juliusz were also thinking that it might be worth to add a feature to print the current provider being used via cargo, since you added the configuration option |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -57,6 +57,34 @@ jobs: | |
| - name: Run clippy | ||
| run: | | ||
| cd wolfcrypt-rs | ||
| cargo clippy -- -D warnings | ||
| cargo clippy --all-features -- -D warnings | ||
| cd ../rustls-wolfcrypt-provider | ||
| cargo clippy -- -D warnings | ||
| cargo clippy --all-features -- -D warnings | ||
|
|
||
| - name: Run tests of rustls v0.23.35 | ||
| run: | | ||
| mkdir rustlsv0.23.35-test-workspace | ||
| cd rustlsv0.23.35-test-workspace | ||
| git clone https://github.com/rustls/rustls.git | ||
| cd rustls | ||
| git fetch --tags | ||
| selected_tag=$(git tag -l "v/0\.23\.35") | ||
| git checkout "$selected_tag" | ||
| cd .. | ||
| git clone https://github.com/helkoulak/rustls-wolfcrypt-provider.git | ||
| cd rustls-wolfcrypt-provider/ | ||
| git checkout quic-support | ||
|
Comment on lines
+66
to
+76
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use https://github.com/marketplace/actions/checkout to fetch repos. |
||
| cd wolfcrypt-rs/ | ||
| make build | ||
| cd ../rustls-wolfcrypt-provider/ | ||
| cargo build --all-features --release | ||
| cd ../.. | ||
| git clone https://github.com/helkoulak/rustls_v0.23.35_test_files.git | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Place these under
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If I understand correctly, you are using these files to make modifications to |
||
| cp -r ./rustls_v0.23.35_test_files/tests . | ||
| cp ./rustls_v0.23.35_test_files/Cargo.toml . | ||
| cp ./rustls_v0.23.35_test_files/provider_files/Cargo.toml ./rustls-wolfcrypt-provider/rustls-wolfcrypt-provider/ | ||
| rm -rf rustls_v0.23.35_test_files | ||
| cargo test -p tests --test all_suites --all-features | ||
| cd .. | ||
| rm -rf rustlsv0.23.35-test-workspace | ||
|
Comment on lines
+64
to
+89
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's split this up into steps to make it easier to understand what failed for future devs. |
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,6 +33,7 @@ lazy_static = "1.5.0" | |
| hex-literal = "0.4.1" | ||
|
|
||
|
|
||
|
|
||
helkoulak marked this conversation as resolved.
Show resolved
Hide resolved
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Extra blank space. |
||
| [dev-dependencies] | ||
| rcgen = { version = "0.13" } | ||
| serial_test = { version = "3.2.0", default-features = false } | ||
|
|
@@ -44,6 +45,7 @@ rustls-pemfile = { version = "2.2.0", default-features = false, features = ["std | |
| [features] | ||
| default = [] | ||
| std = ["pkcs8/std", "rustls/std", "wolfcrypt-rs/std"] | ||
| quic = [] | ||
|
|
||
| [profile.release] | ||
| strip = true | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe instead of using git tag -l followed by checkout, it might be easier to do a checkout directly like this:
git checkout v/0.23.35There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. Using the checkout action is the correct way.