1asn1_get_length_der(3)             libtasn1             asn1_get_length_der(3)
2
3
4

NAME

6       asn1_get_length_der - API function
7

SYNOPSIS

9       #include <libtasn1.h>
10
11       long  asn1_get_length_der(const unsigned char * der, int der_len, int *
12       len);
13

ARGUMENTS

15       const unsigned char * der
16                   DER data to decode.
17
18       int der_len Length of DER data to decode.
19
20       int * len   Output variable containing the length  of  the  DER  length
21                   field.
22

DESCRIPTION

24       Extract a length field from DER data.
25

RETURNS

27       Return the decoded length value, or -1 on indefinite length, or -2 when
28       the value was too big to fit in a int, or -4 when  the  decoded  length
29       value plus  len would exceed  der_len .
30
32       Copyright © 2006-2015 Free Software Foundation, Inc..
33       Copying  and  distribution  of this file, with or without modification,
34       are permitted in any medium  without  royalty  provided  the  copyright
35       notice and this notice are preserved.
36

SEE ALSO

38       The  full documentation for libtasn1 is maintained as a Texinfo manual.
39       If the info and libtasn1 programs are properly installed at your  site,
40       the command
41
42              info libtasn1
43
44       should  give  you access to the complete manual.  As an alternative you
45       may obtain the manual from:
46
47              http://www.gnu.org/software/libtasn1/manual/
48
49libtasn1                            4.16.0              asn1_get_length_der(3)
Impressum