Skip to content

Strengthen handling of enums/bools#38

Merged
dutow merged 1 commit into
Percona-Lab:masterfrom
dutow:unexpectedvalues
Jul 1, 2026
Merged

Strengthen handling of enums/bools#38
dutow merged 1 commit into
Percona-Lab:masterfrom
dutow:unexpectedvalues

Conversation

@dutow

@dutow dutow commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

Previously both boolean and enum handling simply accepted any value sent by the server. After this change, we verify that we receive values properly allowed by the KMIP specification - a valid value for the specific enum, or only 0 and 1 in case of booleans.

@lukin-oleksiy lukin-oleksiy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great! LGTM

@dutow dutow force-pushed the unexpectedvalues branch from 121d703 to 696f4ab Compare July 1, 2026 11:11
Previously both boolean and enum handling simply accepted any value sent
by the server. After this change, we verify that we receive values
properly allowed by the KMIP specification - a valid value for the
specific enum, or only 0 and 1 in case of booleans.
@dutow dutow force-pushed the unexpectedvalues branch from 696f4ab to 075aa6d Compare July 1, 2026 11:22
@dutow dutow merged commit e33cc95 into Percona-Lab:master Jul 1, 2026
6 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