1asn1_der_decoding(3)               libtasn1               asn1_der_decoding(3)
2
3
4

NAME

6       asn1_der_decoding - API function
7

SYNOPSIS

9       #include <libtasn1.h>
10
11       asn1_retCode  asn1_der_decoding(ASN1_TYPE * element, const void * ider,
12       int len, char * errorDescription);
13

ARGUMENTS

15       ASN1_TYPE * element
16                   pointer to an ASN1 structure.
17
18       const void * ider
19                   vector that contains the DER encoding.
20
21       int len     number of bytes of *ider: ider[0]..ider[len-1].
22
23       char * errorDescription
24                   null-terminated  string  contains  details  when  an  error
25                   occurred.
26

DESCRIPTION

28       Fill  the  structure *ELEMENT with values of a DER encoding string. The
29       structure must just be created with function asn1_create_element().  If
30       an  error occurs during the decoding procedure, the *ELEMENT is deleted
31       and set equal to ASN1_TYPE_EMPTY.
32

RETURNS

34       ASN1_SUCCESS if DER encoding OK, ASN1_ELEMENT_NOT_FOUND if  ELEMENT  is
35       ASN1_TYPE_EMPTY, and ASN1_TAG_ERROR or ASN1_DER_ERROR if the der encod‐
36       ing doesn't match the structure name (*ELEMENT deleted).
37
39       Copyright © 2006, 2007, 2008,  2009,  2010  Free  Software  Foundation,
40       Inc..
41       Copying  and  distribution  of this file, with or without modification,
42       are permitted in any medium  without  royalty  provided  the  copyright
43       notice and this notice are preserved.
44

SEE ALSO

46       The  full documentation for libtasn1 is maintained as a Texinfo manual.
47       If the info and libtasn1 programs are properly installed at your  site,
48       the command
49
50              info libtasn1
51
52       should give you access to the complete manual.
53
54
55
56libtasn1                              2.7                 asn1_der_decoding(3)
Impressum