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

[back-port][v0.9] fix: return error when verify empty cert chain #309

Merged
merged 2 commits into from
Aug 30, 2023

Conversation

Taowyoo
Copy link
Collaborator

@Taowyoo Taowyoo commented Aug 21, 2023

back-port #308 to 0.9.X

@Taowyoo Taowyoo changed the base branch from master to v0.9 August 21, 2023 23:10
@Taowyoo

This comment was marked as outdated.

bors bot added a commit that referenced this pull request Aug 21, 2023
@bors

This comment was marked as outdated.

@raoulstrackx
Copy link
Contributor

CI failed with:

  thread 'main' panicked at '"x509_san_other_name_union_(unnamed_at_vendor/include/mbedtls/x509_crt_h_115_5)" is not a valid Ident', /home/travis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.24/src/fallback.rs:693:9

If I remember correctly, this is caused by a combination of bindgen/clang-11. Updating the compiler to clang-12 should resolve the issue. Switching to GitHub Actions as part of this PR is a bit weird.

@Taowyoo

This comment was marked as outdated.

bors bot added a commit that referenced this pull request Aug 22, 2023
@Taowyoo
Copy link
Collaborator Author

Taowyoo commented Aug 22, 2023

CI failed with:

  thread 'main' panicked at '"x509_san_other_name_union_(unnamed_at_vendor/include/mbedtls/x509_crt_h_115_5)" is not a valid Ident', /home/travis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.24/src/fallback.rs:693:9

If I remember correctly, this is caused by a combination of bindgen/clang-11. Updating the compiler to clang-12 should resolve the issue. Switching to GitHub Actions as part of this PR is a bit weird.

Actually it's odd because there is actually no change on bindgen crate and clang11. What is only changed is rust toolchain.

@Taowyoo

This comment was marked as outdated.

@Taowyoo

This comment was marked as outdated.

bors bot added a commit that referenced this pull request Aug 22, 2023
@bors

This comment was marked as outdated.

@Taowyoo

This comment was marked as outdated.

bors bot added a commit that referenced this pull request Aug 22, 2023
@Taowyoo

This comment was marked as outdated.

@bors

This comment was marked as off-topic.

@bors

This comment was marked as outdated.

@Taowyoo

This comment was marked as outdated.

bors bot added a commit that referenced this pull request Aug 22, 2023
@bors

This comment was marked as outdated.

@Taowyoo Taowyoo force-pushed the yx/back-port_pr308 branch from 330cf29 to f3cf6dc Compare August 22, 2023 19:22
@Taowyoo

This comment was marked as outdated.

bors bot added a commit that referenced this pull request Aug 22, 2023
@bors

This comment was marked as outdated.

@Taowyoo Taowyoo force-pushed the yx/back-port_pr308 branch from f3cf6dc to 035aed5 Compare August 22, 2023 21:28
- Verify empty candidate cert chain
- Add other necessary empty List check
@Taowyoo Taowyoo force-pushed the yx/back-port_pr308 branch from 541074e to 0eeea4e Compare August 30, 2023 04:07
@Taowyoo
Copy link
Collaborator Author

Taowyoo commented Aug 30, 2023

bors try

bors bot added a commit that referenced this pull request Aug 30, 2023
@bors
Copy link
Contributor

bors bot commented Aug 30, 2023

try

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

  • continuous-integration/travis-ci/push

@xinyufort
Copy link

bors r+

Copy link

@xinyufort xinyufort left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors bors bot merged commit e0d2836 into v0.9 Aug 30, 2023
@bors
Copy link
Contributor

bors bot commented Aug 30, 2023

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

  • continuous-integration/travis-ci/push

@Taowyoo Taowyoo deleted the yx/back-port_pr308 branch September 5, 2023 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants