aboutsummaryrefslogtreecommitdiffstats
path: root/FAQ
blob: 934e1d736d704273972a94c9b4372c6dc7ea974b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Q: How to build a simplest BER (XER) encoder or decoder?
A:

	Please see "Examples" section of ./doc/asn1c-usage.pdf

	Also, try the following to build the X.509v3 parser:

		cd ./examples/sample.source.PKIX1
		make
		./x509dump -h


Q: Your compiler supplies a der_encode() procedure. How do I encode BER?
A:
	The DER (and CER) are stricter subsets of a more generic BER encoding
	method. If you encode data with DER or CER, all BER-conformant decoders
	will easily understand that. Hence, to encode data in the BER format,
	simply use the DER encoder, der_encode().

	See also:	ISO/IEC 8825-1 / X.690:
			"ASN.1 encoding rules: Specification of
			 Basic Encoding Rules (BER),
			 Canonical Encoding Rules (CER) and
			 Distinguished Encoding Rules (DER)"



-- 
Lev Walkin
vlm@lionet.info