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       int  asn1_der_decoding_element(asn1_node * structure, const char * ele‐
12       mentName, const void * ider, int len, char * errorDescription);
13

ARGUMENTS

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

DESCRIPTION

32       Fill the element named  ELEMENTNAME  with  values  of  a  DER  encoding
33       string.   The  structure  must  just be created with function asn1_cre‐
34       ate_element().  The DER vector must contain the encoding string of  the
35       whole   STRUCTURE  .  If an error occurs during the decoding procedure,
36       the * STRUCTURE is deleted and set equal to NULL.
37
38       This function is deprecated and may just be an alias to asn1_der_decod‐
39       ing in future versions. Use asn1_der_decoding() instead.
40

RETURNS

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

SEE ALSO

54       The full documentation for libtasn1 is maintained as a Texinfo  manual.
55       If  the info and libtasn1 programs are properly installed at your site,
56       the command
57
58              info libtasn1
59
60       should give you access to the complete manual.  As an  alternative  you
61       may obtain the manual from:
62
63              http://www.gnu.org/software/libtasn1/manual/
64
65libtasn1                            4.16.0        asn1_der_decoding_element(3)
Impressum