1asn1_der_decoding_element(3)       libtasn1       asn1_der_decoding_element(3)
2
3
4

NAME

6       asn1_der_decoding_element - API function
7

SYNOPSIS

9       #include <libtasn1.h>
10
11       asn1_retCode  asn1_der_decoding_element(ASN1_TYPE  *  structure,  const
12       char * elementName, const void * ider, int len,  char  *  errorDescrip‐
13       tion);
14

ARGUMENTS

16       ASN1_TYPE * structure
17                   pointer to an ASN1 structure
18
19       const char * elementName
20                   name of the element to fill
21
22       const void * ider
23                   vector  that  contains the DER encoding of the whole struc‐
24                   ture.
25
26       int len     number of bytes of *der: der[0]..der[len-1]
27
28       char * errorDescription
29                   null-terminated  string  contains  details  when  an  error
30                   occurred.
31

DESCRIPTION

33       Fill  the  element  named  ELEMENTNAME  with  values  of a DER encoding
34       string.  The structure must just be  created  with  function  asn1_cre‐
35       ate_element().   The DER vector must contain the encoding 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

RETURNS

40       ASN1_SUCCESS  if  DER encoding OK, ASN1_ELEMENT_NOT_FOUND if ELEMENT is
41       ASN1_TYPE_EMPTY  or  elementName  ==  NULL,   and   ASN1_TAG_ERROR   or
42       ASN1_DER_ERROR  if  the der encoding doesn't match the structure struc‐
43       ture (*ELEMENT deleted).
44
46       Copyright © 2006, 2007, 2008,  2009,  2010  Free  Software  Foundation,
47       Inc..
48       Copying  and  distribution  of this file, with or without modification,
49       are permitted in any medium  without  royalty  provided  the  copyright
50       notice and this notice are preserved.
51

SEE ALSO

53       The  full documentation for libtasn1 is maintained as a Texinfo manual.
54       If the info and libtasn1 programs are properly installed at your  site,
55       the command
56
57              info libtasn1
58
59       should give you access to the complete manual.
60
61
62
63libtasn1                              2.7         asn1_der_decoding_element(3)
Impressum