1asn1_der_decoding(3) libtasn1 asn1_der_decoding(3)
2
3
4
6 asn1_der_decoding - Fill the structure *ELEMENT with values of a DER
7 encoding string.
8
10 #include <libtasn1.h>
11
12 asn1_retCode asn1_der_decoding(ASN1_TYPE * element, const void * ider,
13 int len, char * errorDescription);
14
16 ASN1_TYPE * element
17 pointer to an ASN1 structure.
18
19 const void * ider
20 vector that contains the DER encoding.
21
22 int len number of bytes of *ider: ider[0]..ider[len-1].
23
24 char * errorDescription
25 null-terminated string contains details when an error
26 occurred.
27
29 Fill the structure *ELEMENT with values of a DER encoding string. The
30 sructure must just be created with function procedure, the *ELEMENT is
31 deleted and set equal to ASN1_TYPE_EMPTY.
32
35 DER encoding OK.
36
38 ELEMENT is ASN1_TYPE_EMPTY.
39
40 ASN1_TAG_ERROR,ASN1_DER_ERROR: The der encoding doesn't match the
41 structure NAME. *ELEMENT deleted.
42
44 Copyright © 2006, 2007, 2008, 2009 Free Software Foundation, Inc..
45 Copying and distribution of this file, with or without modification,
46 are permitted in any medium without royalty provided the copyright
47 notice and this notice are preserved.
48
50 The full documentation for libtasn1 is maintained as a Texinfo manual.
51 If the info and libtasn1 programs are properly installed at your site,
52 the command
53
54 info libtasn1
55
56 should give you access to the complete manual.
57
58
59
60libtasn1 2.3 asn1_der_decoding(3)