~ubuntu-branches/ubuntu/trusty/libtasn1-3/trusty

« back to all changes in this revision

Viewing changes to doc/texi/asn1_der_decoding.texi

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Metzler
  • Date: 2006-06-07 20:14:52 UTC
  • Revision ID: james.westby@ubuntu.com-20060607201452-7a9dojyu7i2kfbyp
Tags: upstream-0.3.4
ImportĀ upstreamĀ versionĀ 0.3.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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.
 
3
 
 
4
@var{ider}: vector that contains the DER encoding.
 
5
 
 
6
@var{len}: number of bytes of *@code{ider}: @code{ider}[0]..@code{ider}[len-1].
 
7
 
 
8
@var{errorDescription}: null-terminated string contains details when an
 
9
error occurred.
 
10
 
 
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}.
 
16
 
 
17
@strong{Returns:} 
 
18
@strong{ASN1_SUCCESS:} DER encoding OK.
 
19
 
 
20
@strong{ASN1_ELEMENT_NOT_FOUND:} ELEMENT is ASN1_TYPE_EMPTY.
 
21
 
 
22
ASN1_TAG_ERROR,ASN1_DER_ERROR: The der encoding doesn't match
 
23
the structure NAME. *ELEMENT deleted.
 
24
@end deftypefun
 
25