1asn1_get_length_ber(3)             libtasn1             asn1_get_length_ber(3)
2
3
4

NAME

6       asn1_get_length_ber - API function
7

SYNOPSIS

9       #include <libtasn1.h>
10
11       long  asn1_get_length_ber(const unsigned char * ber, int ber_len, int *
12       len);
13

ARGUMENTS

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

DESCRIPTION

24       Extract   a   length   field   from   BER   data.   The  difference  to
25       asn1_get_length_der() is that this function will return a  length  even
26       if the value has indefinite encoding.
27

RETURNS

29       Return  the  decoded length value, or negative value when the value was
30       too big.
31

SINCE

33       2.0
34
36       Copyright © 2006-2015 Free Software Foundation, Inc..
37       Copying and distribution of this file, with  or  without  modification,
38       are  permitted  in  any  medium  without royalty provided the copyright
39       notice and this notice are preserved.
40

SEE ALSO

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