Closed turabek-cc closed 2 years ago
I guess this:
Psid ::= INTEGER (0..MAX)
CrlPsid ::= Psid(256)
Npsid ::= Psid (CrlPsid)
is not properly supported by the pycrate's compiler. These ITS ASN.1 specifications are so convoluted...
@turabek-cc : which spec are you using exactly ? As there is an ETSI_ITS_IEEE1609_2 in pycrate, which compiles fine: https://github.com/P1sec/pycrate/tree/master/pycrate_asn1dir/ETSI_ITS_IEEE1609_2/.
@p1-bmu I am using the files from https://standards.ieee.org/wp-content/uploads/import/download/1609.2.1-2020_downloads.zip . Specifically, the following files:
OK, I think the last commit should have solved the issue. Please try to recompile your modules after a fresh git pull
and let me know.
I confirm that the last commit solved the issue. I am able to compile the files listed above without any modifications.
[proc] [1609dot2.asn] module IEEE1609dot2BaseTypes (oid: [1, 3, 111, 2, 1609, 2, 1, 2, 2]): 72 ASN.1 assignments found
[proc] [1609dot2.asn] module IEEE1609dot2 (oid: [1, 3, 111, 2, 1609, 2, 1, 1, 2]): 36 ASN.1 assignments found
[proc] [1609dot2.asn] module IEEE1609dot2-Peer2Peer (oid: [1, 3, 111, 2, 1609, 2, 2, 1, 2]): 3 ASN.1 assignments found
[proc] [1609dot2.asn] module IEEE1609dot2CrlBaseTypes (oid: [1, 3, 111, 2, 1609, 2, 3, 2, 2]): 17 ASN.1 assignments found
[proc] [1609dot2.asn] module IEEE1609dot2Crl (oid: [1, 3, 111, 2, 1609, 2, 3, 1, 2]): 3 ASN.1 assignments found
[proc] [1609dot2.asn] module IEEE1609dot2CrlSsp (oid: [1, 3, 111, 2, 1609, 2, 3, 3, 2]): 4 ASN.1 assignments found
[proc] [1609dot2.asn] module EtsiTs102941Crl (oid: [1, 3, 111, 2, 1609, 2, 3, 100, 1, 2]): 3 ASN.1 assignments found
--- compilation cycle ---
--- compilation cycle ---
--- compilation cycle ---
WNG: IEEE1609dot2._set_Certificate, unprocessed set of values from constraint, _set_Certificate
WNG: IEEE1609dot2._set_Certificate, unprocessed set of values from constraint, _set_Certificate
--- verifications ---
[proc] ASN.1 modules processed: ['IEEE1609dot2BaseTypes', 'IEEE1609dot2', 'IEEE1609dot2-Peer2Peer', 'IEEE1609dot2CrlBaseTypes', 'IEEE1609dot2Crl', 'IEEE1609dot2CrlSsp', 'EtsiTs102941Crl']
[proc] ASN.1 objects compiled: 131 types, 0 sets, 0 values
[proc] done
Thank you!
I am trying to compile IEEE 1609.2 specification. The line with
psid (CrlPsid )
is failing with the followingHere is the excerpt from specification.
If I change
psid (CrlPsid )
topsid (256)
compilation is successful. However, I am not sure if it will work as expected or not. Is there some workaround for this situation?