Frequently Asked Questions
Q.: Does asn1c support BER encoding? I see only DER encoding in documentation.
A.: Yes, the asn1c compiler fully supports BER encoding. Any DER encoded data is, by definition, a valid BER data, from the receiver's point of view.
A.: Yes, the asn1c compiler fully supports BER encoding. Any DER encoded data is, by definition, a valid BER data, from the receiver's point of view.
If you want data to be BER or DER encoded, just invoke der_encode().
P.S. This question is so frequently asked that it deserved a special entry here.
Q.: How to compile the 3GPP Radio Resource Control specification?
A.: Use the following command line:
A.: Use the following command line:
asn1c -fcompound-names -gen-PER rrc.asn1Where the rrc.asn1 is an RRC 25.331 specification (version 7.1.0) found in the asn1c distribution (samples/rrc.asn1). If you need to obtain a different RRC module version, check out samples/sample.source.RRC/README.
You can also use the pre-compiled rrc-dump.exe program, which is part of Windows ASN.1 compiler installer.
Q.: How to compile the ISO 13522 (MHEG-5) specification?
A.: The ASN.1 compiler comes with a MHEG-5 decoder. Follow the samples/sample.source.MHEG5/README file instructions. You can also use the pre-compiled mheg5dump.exe program, which is part of Windows ASN.1 compiler installer.
A.: The ASN.1 compiler comes with a MHEG-5 decoder. Follow the samples/sample.source.MHEG5/README file instructions. You can also use the pre-compiled mheg5dump.exe program, which is part of Windows ASN.1 compiler installer.
Q.: How to compile the XYZ decoder?
A.: If XYZ is one of MEGACO (Media Gateway Control), PKIX1/X.509, LDAP, GSM TAP3 or OAM ULP, just go to samples/sample.source.XYZ and run `make`. The Windows ASN.1 compiler installer already contains the pre-compiled decoders for these encoding formats.
A.: If XYZ is one of MEGACO (Media Gateway Control), PKIX1/X.509, LDAP, GSM TAP3 or OAM ULP, just go to samples/sample.source.XYZ and run `make`. The Windows ASN.1 compiler installer already contains the pre-compiled decoders for these encoding formats.
If you have something else, you should either use the Online ASN.1 compiler, or download the ASN.1 compiler source code.