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

Fix parsing NSSDB configuration #128

Merged
merged 3 commits into from
Dec 11, 2024
Merged

Fix parsing NSSDB configuration #128

merged 3 commits into from
Dec 11, 2024

Conversation

Jakuje
Copy link
Contributor

@Jakuje Jakuje commented Dec 11, 2024

Parsing of the NSS configuration string was working just for the first key=value and exploded for anything after that. This fixes couple issues found while parsing different key=value inputs, quoting. Most of the inputs are unused in the code so there is no way to test them for now.

src/storage/nssdb/config.rs Outdated Show resolved Hide resolved
Previously, the parsing of multiple parameters did not continue
from the previous offset, but reverted back to the start of the
string when we went through multiple parameters.

The follow-up parameters also had a leading space separator
character, which prevented matching it against the defined names.

Signed-off-by: Jakub Jelen <[email protected]>
Signed-off-by: Jakub Jelen <[email protected]>
@simo5 simo5 merged commit c844a57 into latchset:main Dec 11, 2024
19 checks passed
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.

2 participants