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

Add a rustls-webpki harness #105

Merged
merged 3 commits into from
Nov 27, 2023
Merged

Add a rustls-webpki harness #105

merged 3 commits into from
Nov 27, 2023

Conversation

woodruffw
Copy link
Collaborator

@woodruffw woodruffw commented Nov 27, 2023

I got a little bored on a flight and added this. Still needs to be hooked up to the CI/CD. Done.

CC @cpu -- you might/should be able to reuse bits of this for your own in-tree runner 🙂

Closes #88.

Signed-off-by: William Woodruff <[email protected]>
@woodruffw woodruffw self-assigned this Nov 27, 2023
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
@woodruffw woodruffw marked this pull request as ready for review November 27, 2023 13:48
@woodruffw woodruffw merged commit 1f05d51 into main Nov 27, 2023
8 checks passed
@woodruffw woodruffw deleted the ww/rustls-webpki branch November 27, 2023 17:48
Comment on lines +121 to +124
// Very dumb: rustls-webpki doesn't allow compressed IPv6 string representations,
// so we need to round-trip through `std::net::IpAddr`. This in turn requires
// us to round-trip through `webpki::IpAddr` and perform a leak, since
// we have no outliving reference to borrow against.
Copy link

Choose a reason for hiding this comment

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

FWIW, as of rustls/webpki 0.102.0-alpha.7 the compressed repr should work. We'll probably have a final release with that code in the next couple of weeks.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Awesome, thank you! We'll keep this harness up-to-date with each version as it goes out of alpha 🙂

(Also for the record, the "very dumb" is referring to me leaking to hack around the lifetimes here, not your APIs.)

Copy link

Choose a reason for hiding this comment

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

Also for the record, the "very dumb" is referring to me leaking to hack around the lifetimes here, not your APIs

Haha yeah, that's the context I read it in too but I appreciate the clarification :-D

@cpu
Copy link

cpu commented Nov 27, 2023

Thank you, this is great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rustls webpki test harness?
2 participants