1asn1_der_decoding(3) libtasn1 asn1_der_decoding(3)
2
3
4
6 asn1_der_decoding - API function
7
9 #include <libtasn1.h>
10
11 int asn1_der_decoding(asn1_node * element, const void * ider, int
12 ider_len, char * errorDescription);
13
15 asn1_node * element
16 pointer to an ASN1 structure.
17
18 const void * ider
19 vector that contains the DER encoding.
20
21 int ider_len
22 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 structure must just be created with function asn1_create_element().
31
32 Note that the * element variable is provided as a pointer for histori‐
33 cal reasons.
34
36 ASN1_SUCCESS if DER encoding OK, ASN1_ELEMENT_NOT_FOUND if ELEMENT is
37 NULL, and ASN1_TAG_ERROR or ASN1_DER_ERROR if the der encoding doesn't
38 match the structure name (* ELEMENT deleted).
39
41 Copyright © 2006-2015 Free Software Foundation, Inc..
42 Copying and distribution of this file, with or without modification,
43 are permitted in any medium without royalty provided the copyright
44 notice and this notice are preserved.
45
47 The full documentation for libtasn1 is maintained as a Texinfo manual.
48 If the info and libtasn1 programs are properly installed at your site,
49 the command
50
51 info libtasn1
52
53 should give you access to the complete manual. As an alternative you
54 may obtain the manual from:
55
56 http://www.gnu.org/software/libtasn1/manual/
57
58libtasn1 4.13 asn1_der_decoding(3)