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 PSK bundle validation #72

Merged
merged 5 commits into from
Feb 19, 2025
Merged

Add PSK bundle validation #72

merged 5 commits into from
Feb 19, 2025

Conversation

rozbb
Copy link
Owner

@rozbb rozbb commented Nov 11, 2024

As mentioned in #69, the spec requires that PSK bundles either have both psk and psk_id empty or both nonempty. This check is not currently performed in this crate.

I figure the best way to fix this is to make it impossible to construct a PskBundle without doing validation. The fields are no longer public. It's not possible to retrieve the fields anymore, but I'm not sure anyone was using that. Maybe avoid adding getters unless someone complains?

@gendx how does htis look?

@rozbb rozbb merged commit ba4014a into main Feb 19, 2025
23 checks passed
@rozbb rozbb deleted the verify-psk-inputs branch February 19, 2025 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant