`SET OF` parsing issue
- Lingua principale
- Rust
- Stelle
- 135
- Fork
- 35
- Merge medio
- 1h 23m
- PR unite (30g)
- 1
Descrizione
Hello,
I am facing an issue parsing a certificate with a `SET OF` fields that contains multiple elements.
Specifically, I am getting a `ParseErrorKind::InvalidSetOrdering` error because for some reason, when parsing, it enforces the elements of the set to be in ascending order ([see here](https://github.com/alex/rust-asn1/blob/7f5f2207c8eb3dcc685bdd8a214443f564eb2492/src/types.rs#L1373)), but I do not think that this is something that needs to be enforced for `SET OF`.
Everything I read on the standard says that the order of SET values is not important, or it can be sorted based on the elements tags but not the actual elements value for DER encoding.
Because of this behaviour, I am unable to parse certificates like [this one](MIICujCCAmCgAwIBAgIBATAKBggqhkjOPQQDAjA_MRIwEAYDVQQMDAlTdHJvbmdCb3gxKTAnBgNVBAUTIDc4YjVlZWE0NGExNGU1NDc3MmE2OGJlNmViNzgxNGI0MB4XDTcwMDEwMTAwMDAwMFoXDTQ5MTIzMTIzNTk1OVowHzEdMBsGA1UEAxMUQW5kcm9pZCBLZXlzdG9yZSBLZXkwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAATiA7TtFIczrKYyKXj_udctyUCRnUidh65SQs9us5tq6Kue32cxC1uI6KtegvfsbLd3itAMSA5IRqptu95VMDtDo4IBazCCAWcwDAYDVR0PBAUDAweIADCCAVUGCisGAQQB1nkCAREEggFFMIIBQQIBZAoBAgIBZAoBAgQgUjMWdb).
Is this an issue with the library or am I missing something?
Thank you in advance.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.