1
@deftypefun {asn1_retCode} {asn1_der_coding} (ASN1_TYPE @var{element}, const char * @var{name}, void * @var{ider}, int * @var{len}, char * @var{ErrorDescription})
2
@var{element}: pointer to an ASN1 element
4
@var{name}: the name of the structure you want to encode (it must be
7
@var{ider}: vector that will contain the DER encoding. DER must be a
8
pointer to memory cells already allocated.
10
@var{len}: number of bytes of *@code{ider}: @code{ider}[0]..@code{ider}[len-1], Initialy
11
holds the sizeof of der vector.
13
Creates the DER encoding for the NAME structure (inside *POINTER
17
@strong{ASN1_SUCCESS:} DER encoding OK.
19
@strong{ASN1_ELEMENT_NOT_FOUND:} NAME is not a valid element.
21
@strong{ASN1_VALUE_NOT_FOUND:} There is an element without a value.
23
@strong{ASN1_MEM_ERROR:} @code{ider} vector isn't big enough. Also in this case
24
LEN will contain the length needed.