1
@deftypefun {asn1_retCode} {asn1_der_decoding} (ASN1_TYPE * @var{element}, const void * @var{ider}, int @var{len}, char * @var{errorDescription})
2
@var{element}: pointer to an ASN1 structure.
4
@var{ider}: vector that contains the DER encoding.
6
@var{len}: number of bytes of *@code{ider}: @code{ider}[0]..@code{ider}[len-1].
8
@var{errorDescription}: null-terminated string contains details when an
11
Fill the structure *ELEMENT with values of a DER encoding
12
string. The sructure must just be created with function
13
'create_stucture'. If an error occurs during the decoding
14
procedure, the *ELEMENT is deleted and set equal to
15
@code{ASN1_TYPE_EMPTY}.
18
@strong{ASN1_SUCCESS:} DER encoding OK.
20
@strong{ASN1_ELEMENT_NOT_FOUND:} ELEMENT is ASN1_TYPE_EMPTY.
22
ASN1_TAG_ERROR,ASN1_DER_ERROR: The der encoding doesn't match
23
the structure NAME. *ELEMENT deleted.