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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Add PSK bundle validation #72

wants to merge 3 commits into from

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?

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