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       int  asn1_der_decoding_startEnd(asn1_node  element,  const void * ider,
12       int ider_len, const char * name_element, int * start, int * end);
13

ARGUMENTS

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

DESCRIPTION

34       Find the start and end point of an element in a DER encoding string.  I
35       mean  that  if  you  have  a der encoding and you have already used the
36       function asn1_der_decoding() to fill a structure, it  may  happen  that
37       you  want  to  find  the  piece  of string concerning an element of the
38       structure.
39
40       One example is the sequence "tbsCertificate" inside  an  X509  certifi‐
41       cate.
42
43       Note  that since libtasn1 3.7 the  ider and  ider_len parameters can be
44       omitted, if the element is already decoded using asn1_der_decoding().
45

RETURNS

47       ASN1_SUCCESS if DER encoding OK, ASN1_ELEMENT_NOT_FOUND if  ELEMENT  is
48       asn1_node EMPTY or  name_element is not a valid element, ASN1_TAG_ERROR
49       or ASN1_DER_ERROR if the der encoding doesn't match the structure  ELE‐
50       MENT.
51
53       Copyright © 2006-2015 Free Software Foundation, Inc..
54       Copying  and  distribution  of this file, with or without modification,
55       are permitted in any medium  without  royalty  provided  the  copyright
56       notice and this notice are preserved.
57

SEE ALSO

59       The  full documentation for libtasn1 is maintained as a Texinfo manual.
60       If the info and libtasn1 programs are properly installed at your  site,
61       the command
62
63              info libtasn1
64
65       should  give  you access to the complete manual.  As an alternative you
66       may obtain the manual from:
67
68              http://www.gnu.org/software/libtasn1/manual/
69
70libtasn1                            4.16.0       asn1_der_decoding_startEnd(3)
Impressum