Open EliotCao opened 2 years ago
In general, this free ASN.1 compiler doesn't do too well with complicated kludgy twisted modern perversions of ASN.1 language.
I'll try to take a look at your example, but can tell you immediately that it's probably beyond my level of competence.
Perhaps too late, but anyway. Just modify the Ieee1609Dot2Dot1Protocol.asn as
--***************************************************************************--
-- Certificate Requests --
--***************************************************************************--
ScmsPdu-RaAcaCertRequest ::= ScmsPdu-Scoped {
AcaRaInterfacePdu (WITH COMPONENTS {
raAcaCertRequest
})
}
ScmsPdu-EeEcaCertRequest ::= ScmsPdu-Scoped {
EcaEeInterfacePdu (WITH COMPONENTS {
eeEcaCertRequest
})
}
ScmsPdu-EeRaCertRequest ::= ScmsPdu-Scoped {
EeRaInterfacePdu (WITH COMPONENTS {
eeRaCertRequest
})
}
ScmsPdu-EeRaSuccessorEnrollmentCertRequest ::= ScmsPdu-Scoped {
EeRaInterfacePdu (WITH COMPONENTS {
eeRaSuccessorEnrollmentCertRequest
})
}
/**
* @brief This structure defines the all certificate request structures as a
* scoped version of the ScmsPdu.
*/
ScopedCertificateRequest ::= ScmsPdu (
ScmsPdu-RaAcaCertRequest | ScmsPdu-EeEcaCertRequest |
ScmsPdu-EeRaCertRequest | ScmsPdu-EeRaSuccessorEnrollmentCertRequest
)
I use asn1c to generate C code from an asn file, but I got such warning and errors:
I use asn1c to generate C code from an asn file, but I got such warning and errors:
And these is my asn content:
Thank you very much and look forward to your reply!