Skip to content

Handling of unrecognized identifiers #22

@dennisjackson

Description

@dennisjackson

As noted by Ilari in #18, there's a possible ambiguity with the use of three byte identifiers in this draft. Although currently three byte cert_data entries are not possible with X509, this could hypothetically change.

I can see a few options:

a) Since there is currently no valid 3-byte cert_data payload when using X.509 certs, require compression to fail if any 3-byte payload is seen. Then decompression can fail if any unrecognized 3-byte payload is seen. This effectively 'reserves' all three byte length sequences for this draft.

b) Require compression to fail if 3-byte payload passed to the compression algorithm would clash with an identifier in the scheme. Then decompression can safely ignore any unrecognised 3-byte identifier - since it was present in the original uncompressed Certificate message.

c) As in b) but 'reserve' some space of identifiers, e.g. 3 bytes beginning 0xff etc.

I slightly prefer b) or c) although this is additional implementation complexity for a code path which is likely to never be used in practice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions