1asn1_der_decoding2(3)              libtasn1              asn1_der_decoding2(3)
2
3
4

NAME

6       asn1_der_decoding2 - API function
7

SYNOPSIS

9       #include <libtasn1.h>
10
11       int  asn1_der_decoding2(asn1_node  *  element, const void * ider, int *
12       max_ider_len, unsigned int flags, char * errorDescription);
13

ARGUMENTS

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 * max_ider_len
22                   pointer to an integer giving the information about the max‐
23                   imal  number of bytes occupied by * ider . The real size of
24                   the DER encoding is returned through this pointer.
25
26       unsigned int flags
27                   flags controlling the behaviour of the function.
28
29       char * errorDescription
30                   null-terminated  string  contains  details  when  an  error
31                   occurred.
32

DESCRIPTION

34       Fill  the structure * element with values of a DER encoding string. The
35       structure must just be created with function asn1_create_element().
36
37       If ASN1_DECODE_FLAG_ALLOW_PADDING flag is set then  the  function  will
38       ignore padding after the decoded DER data. Upon a successful return the
39       value of * max_ider_len will be set to the number of bytes decoded.
40
41       If ASN1_DECODE_FLAG_STRICT_DER flag is set then the function  will  not
42       decode any BER-encoded elements.
43

RETURNS

45       ASN1_SUCCESS  if DER encoding OK, ASN1_ELEMENT_NOT_FOUND if  ELEMENT is
46       NULL, and ASN1_TAG_ERROR or ASN1_DER_ERROR if the der encoding  doesn't
47       match the structure name (* ELEMENT deleted).
48
50       Copyright © 2006-2015 Free Software Foundation, Inc..
51       Copying  and  distribution  of this file, with or without modification,
52       are permitted in any medium  without  royalty  provided  the  copyright
53       notice and this notice are preserved.
54

SEE ALSO

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.  As an alternative you
63       may obtain the manual from:
64
65              http://www.gnu.org/software/libtasn1/manual/
66
67libtasn1                              4.8                asn1_der_decoding2(3)
Impressum