Debian Codegraph @

FAQ

raw
1
2 1.Q: Is it possible to build the asn1c compiler on Win32?
3 1.A:
4 At this point, the asn1c source code is tied to GCC-specific
5 extensions in several key places. The CYGWIN environment with
6 gcc compiler may be what are you looking for.
7
8 Please also consider using the Online ASN.1 compiler at
9 http://lionet.info/asn1c
10 which generates platform-independent code.
11
12
13 2.Q: How to build a simplest BER (XER) encoder or decoder?
14 2.A:
15 Please check the "Quick Start Guide" on ./doc/asn1c-quick.pdf
16 Please check the "Examples" section of ./doc/asn1c-usage.pdf
17
18 Also, try the following to build the X.509v3 parser:
19
20 cd ./examples/sample.source.PKIX1
21 make
22 ./x509dump -h
23
24
25 3.Q: Your compiler supplies a der_encode() procedure. How do I encode BER?
26 3.A:
27 The DER (and CER) are stricter subsets of a more generic BER encoding
28 method. If you encode data with DER or CER, all BER-conformant decoders
29 will easily understand that. Hence, to encode data in the BER format,
30 simply use the DER encoder, der_encode().
31
32 See also: ISO/IEC 8825-1 / X.690:
33 "ASN.1 encoding rules: Specification of
34 Basic Encoding Rules (BER),
35 Canonical Encoding Rules (CER) and
36 Distinguished Encoding Rules (DER)"
37
38
39
40 --
41 Lev Walkin
42 [email protected]