Skip to content

HostDataSSLCert#serial type too small#3

Open
CausticKirbyZ wants to merge 2 commits into
PercussiveElbow:masterfrom
CausticKirbyZ:master
Open

HostDataSSLCert#serial type too small#3
CausticKirbyZ wants to merge 2 commits into
PercussiveElbow:masterfrom
CausticKirbyZ:master

Conversation

@CausticKirbyZ
Copy link
Copy Markdown

@CausticKirbyZ CausticKirbyZ commented Oct 7, 2024

Change HostDataSSLCert#serial type from UInt64? to UInt128?.

This supports bigger serial numbers and fixes parsing issues with numbers larger than an Int64 supports. This wont fully fix the parsing issue but will allow for more support without breaking int comparisons.

a more complete parsing fix could be implemented by converting to a string using the following:

    @[JSON::Field(converter: String::RawConverter)]
    property serial : String?

changed HostDataSSLCert#serial type to a UInt128. This supports bigger serial numbers and fixes any parsing issues with numbers larger than an Int64 supports
changed it to a string for more support as UInt128 still wasnt big enough
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