1asn1_der_decoding_startEnd(3)      libtasn1      asn1_der_decoding_startEnd(3)
2
3
4

NAME

6       asn1_der_decoding_startEnd - API function
7

SYNOPSIS

9       #include <libtasn1.h>
10
11       asn1_retCode asn1_der_decoding_startEnd(ASN1_TYPE element, const void *
12       ider, int len, const char * name_element, int * start, int * end);
13

ARGUMENTS

15       ASN1_TYPE element
16                   pointer to an ASN1 element
17
18       const void * ider
19                   vector that contains the DER encoding.
20
21       int len     number of bytes of *ider: ider[0]..ider[len-1]
22
23       const char * name_element
24                   an element of NAME structure.
25
26       int * start the position of the first  byte  of  NAME_ELEMENT  decoding
27                   (ider[*start])
28
29       int * end   the  position  of  the  last  byte of NAME_ELEMENT decoding
30                   (ider[*end])
31

DESCRIPTION

33       Find the start and end point of an element in a DER encoding string.  I
34       mean  that  if  you  have  a der encoding and you have already used the
35       function asn1_der_decoding() to fill a structure, it  may  happen  that
36       you  want  to  find  the  piece  of string concerning an element of the
37       structure.
38
39       One example is the sequence "tbsCertificate" inside  an  X509  certifi‐
40       cate.
41

RETURNS

43       ASN1_SUCCESS  if  DER encoding OK, ASN1_ELEMENT_NOT_FOUND if ELEMENT is
44       ASN1_TYPE EMPTY or name_element is not a valid element,  ASN1_TAG_ERROR
45       or  ASN1_DER_ERROR if the der encoding doesn't match the structure ELE‐
46       MENT.
47
49       Copyright © 2006, 2007, 2008,  2009,  2010  Free  Software  Foundation,
50       Inc..
51       Copying  and  distribution  of this file, with or without modification,
52       are permitted in any medium  without  royalty  provided  the  copyright
53       notice and this notice are preserved.
54

SEE ALSO

56       The  full documentation for libtasn1 is maintained as a Texinfo manual.
57       If the info and libtasn1 programs are properly installed at your  site,
58       the command
59
60              info libtasn1
61
62       should give you access to the complete manual.
63
64
65
66libtasn1                              2.7        asn1_der_decoding_startEnd(3)
Impressum