1 .\" DO NOT MODIFY THIS FILE! It was generated by gdoc.
2 .TH "asn1_der_decoding" 3 "2.7" "libtasn1" "libtasn1"
4 asn1_der_decoding \- API function
6 .B #include <libtasn1.h>
8 .BI "asn1_retCode asn1_der_decoding(ASN1_TYPE * " element ", const void * " ider ", int " len ", char * " errorDescription ");"
10 .IP "ASN1_TYPE * element" 12
11 pointer to an ASN1 structure.
12 .IP "const void * ider" 12
13 vector that contains the DER encoding.
15 number of bytes of *\fIider\fP: \fIider\fP[0]..\fIider\fP[len\-1].
16 .IP "char * errorDescription" 12
17 null\-terminated string contains details when an
20 Fill the structure *\fIELEMENT\fP with values of a DER encoding
21 string. The structure must just be created with function
22 \fBasn1_create_element()\fP. If an error occurs during the decoding
23 procedure, the *\fIELEMENT\fP is deleted and set equal to
24 \fBASN1_TYPE_EMPTY\fP.
26 \fBASN1_SUCCESS\fP if DER encoding OK, \fBASN1_ELEMENT_NOT_FOUND\fP
27 if \fIELEMENT\fP is \fBASN1_TYPE_EMPTY\fP, and \fBASN1_TAG_ERROR\fP or
28 \fBASN1_DER_ERROR\fP if the der encoding doesn't match the structure
29 name (*\fIELEMENT\fP deleted).
31 Copyright \(co 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc..
33 Copying and distribution of this file, with or without modification,
34 are permitted in any medium without royalty provided the copyright
35 notice and this notice are preserved.
37 The full documentation for
39 is maintained as a Texinfo manual. If the
43 programs are properly installed at your site, the command
47 should give you access to the complete manual.