1asn1_der_coding(3)                 libtasn1                 asn1_der_coding(3)
2
3
4

NAME

6       asn1_der_coding - Creates the DER encoding for the NAME structure
7

SYNOPSIS

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

ARGUMENTS

15       ASN1_TYPE element
16                   pointer to an ASN1 element
17
18       const char * name
19                   the name of the structure you want to encode  (it  must  be
20                   inside *POINTER).
21
22       void * ider vector  that  will  contain the DER encoding. DER must be a
23                   pointer to memory cells already allocated.
24
25       int * len   number of bytes of  *ider:  ider[0]..ider[len-1],  Initialy
26                   holds the sizeof of der vector.
27
28       char * ErrorDescription
29

DESCRIPTION

31       Creates the DER encoding for the NAME structure (inside *POINTER struc‐
32       ture).
33

RETURNS

ASN1_SUCCESS

36       DER encoding OK.
37

ASN1_ELEMENT_NOT_FOUND

39       NAME is not a valid element.
40

ASN1_VALUE_NOT_FOUND

42       There is an element without a value.
43

ASN1_MEM_ERROR

45       ider vector isn't big enough. Also in this case LEN  will  contain  the
46       length needed.
47
49       Copyright © 2006 Free Software Foundation, Inc..
50       Permission  is  granted  to make and distribute verbatim copies of this
51       manual provided the copyright notice and  this  permission  notice  are
52       preserved on all copies.
53

SEE ALSO

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