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

NAME

6       asn1_der_coding - API function
7

SYNOPSIS

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

ARGUMENTS

15       asn1_node 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],  Ini‐
26                   tialy holds the sizeof of der vector.
27
28       char * ErrorDescription
29                   return the error description or an empty string if success.
30

DESCRIPTION

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

RETURNS

36       ASN1_SUCCESS if DER encoding OK, ASN1_ELEMENT_NOT_FOUND if  name is not
37       a  valid element, ASN1_VALUE_NOT_FOUND if there is an element without a
38       value, ASN1_MEM_ERROR if the  ider vector isn't big enough and in  this
39       case  len will contain the length needed.
40
42       Copyright © 2006-2015 Free Software Foundation, Inc..
43       Copying  and  distribution  of this file, with or without modification,
44       are permitted in any medium  without  royalty  provided  the  copyright
45       notice and this notice are preserved.
46

SEE ALSO

48       The  full documentation for libtasn1 is maintained as a Texinfo manual.
49       If the info and libtasn1 programs are properly installed at your  site,
50       the command
51
52              info libtasn1
53
54       should  give  you access to the complete manual.  As an alternative you
55       may obtain the manual from:
56
57              http://www.gnu.org/software/libtasn1/manual/
58
59libtasn1                              4.8                   asn1_der_coding(3)
Impressum