blob: a2e4004b95bf456ad2bff81d7b803e22f4a138a3 [file] [log] [blame]
vlmcfa6f742004-08-20 13:38:07 +00001
vlm3990f892005-03-20 13:26:08 +000021.Q: Is it possible to build the asn1c compiler on Win32?
31.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.
vlm547269c2005-02-28 15:34:47 +00007
vlm3990f892005-03-20 13:26:08 +00008 Please also consider using the Online ASN.1 compiler at
9 http://lionet.info/asn1c
10 which generates platform-independent code.
11
12
132.Q: How to build a simplest BER (XER) encoder or decoder?
142.A:
vlm547269c2005-02-28 15:34:47 +000015 Please see "Examples" section of ./doc/asn1c-usage.pdf
16
17 Also, try the following to build the X.509v3 parser:
18
19 cd ./examples/sample.source.PKIX1
20 make
21 ./x509dump -h
22
23
vlm3990f892005-03-20 13:26:08 +0000243.Q: Your compiler supplies a der_encode() procedure. How do I encode BER?
253.A:
vlmcfa6f742004-08-20 13:38:07 +000026 The DER (and CER) are stricter subsets of a more generic BER encoding
27 method. If you encode data with DER or CER, all BER-conformant decoders
28 will easily understand that. Hence, to encode data in the BER format,
29 simply use the DER encoder, der_encode().
30
31 See also: ISO/IEC 8825-1 / X.690:
32 "ASN.1 encoding rules: Specification of
33 Basic Encoding Rules (BER),
34 Canonical Encoding Rules (CER) and
35 Distinguished Encoding Rules (DER)"
36
vlme6bdf512004-09-05 10:41:17 +000037
vlme6bdf512004-09-05 10:41:17 +000038
39--
40Lev Walkin
41vlm@lionet.info