1asn1_der_decoding_element(3) libtasn1 asn1_der_decoding_element(3)
2
3
4
6 asn1_der_decoding_element - Fill the element named ELEMENTNAME of the
7 structure STRUCTURE with values of a DER encoding string.
8
10 #include <libtasn1.h>
11
12 asn1_retCode asn1_der_decoding_element(ASN1_TYPE * structure, const
13 char * elementName, const void * ider, int len, char * errorDescrip‐
14 tion);
15
17 ASN1_TYPE * structure
18 pointer to an ASN1 structure
19
20 const char * elementName
21 name of the element to fill
22
23 const void * ider
24 vector that contains the DER encoding of the whole struc‐
25 ture.
26
27 int len number of bytes of *der: der[0]..der[len-1]
28
29 char * errorDescription
30 null-terminated string contains details when an error
31 occurred.
32
34 Fill the element named ELEMENTNAME with values of a DER encoding
35 string. The sructure must just be created with function string of the
36 whole STRUCTURE. If an error occurs during the decoding procedure, the
37 *STRUCTURE is deleted and set equal to ASN1_TYPE_EMPTY.
38
41 DER encoding OK.
42
44 ELEMENT is ASN1_TYPE_EMPTY or elementName == NULL.
45
46 ASN1_TAG_ERROR,ASN1_DER_ERROR: The der encoding doesn't match the
47 structure STRUCTURE. *ELEMENT deleted.
48
50 Copyright © 2006 Free Software Foundation, Inc..
51 Permission is granted to make and distribute verbatim copies of this
52 manual provided the copyright notice and this permission notice are
53 preserved on all copies.
54
56 The full documentation for libtasn1 is maintained as a Texinfo manual.
57 If the info and libtasn1 programs are properly installed at your site,
58 the command
59
60 info libtasn1
61
62 should give you access to the complete manual.
63
64
65
66libtasn1 0.3.9 asn1_der_decoding_element(3)