-
Notifications
You must be signed in to change notification settings - Fork 6
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
Conversation
Signed-off-by: William Woodruff <william@trailofbits.com>
Signed-off-by: William Woodruff <william@trailofbits.com>
Signed-off-by: William Woodruff <william@trailofbits.com>
// 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. |
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.
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.
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.
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.)
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.
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
Thank you, this is great! |
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.