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

« back to all changes in this revision

Viewing changes to doc/texi/asn1_der_coding.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_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
 
3
 
 
4
@var{name}: the name of the structure you want to encode (it must be
 
5
inside *POINTER).
 
6
 
 
7
@var{ider}: vector that will contain the DER encoding. DER must be a
 
8
pointer to memory cells already allocated.
 
9
 
 
10
@var{len}: number of bytes of *@code{ider}: @code{ider}[0]..@code{ider}[len-1], Initialy
 
11
holds the sizeof of der vector.
 
12
 
 
13
Creates the DER encoding for the NAME structure (inside *POINTER
 
14
structure).
 
15
 
 
16
@strong{Returns:} 
 
17
@strong{ASN1_SUCCESS:} DER encoding OK.
 
18
 
 
19
@strong{ASN1_ELEMENT_NOT_FOUND:} NAME is not a valid element.
 
20
 
 
21
@strong{ASN1_VALUE_NOT_FOUND:} There is an element without a value.
 
22
 
 
23
@strong{ASN1_MEM_ERROR:} @code{ider} vector isn't big enough. Also in this case
 
24
LEN will contain the length needed.
 
25
@end deftypefun
 
26