1asn1_get_length_ber(3) libtasn1 asn1_get_length_ber(3)
2
3
4
6 asn1_get_length_ber - API function
7
9 #include <libtasn1.h>
10
11 signed long asn1_get_length_ber(const unsigned char * ber, int ber_len,
12 int * len);
13
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
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
29 Return the decoded length value, or negative value when the value was
30 too big.
31
33 2.0
34
36 Copyright © 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
37 Inc..
38 Copying and distribution of this file, with or without modification,
39 are permitted in any medium without royalty provided the copyright
40 notice and this notice are preserved.
41
43 The full documentation for libtasn1 is maintained as a Texinfo manual.
44 If the info and libtasn1 programs are properly installed at your site,
45 the command
46
47 info libtasn1
48
49 should give you access to the complete manual.
50
51
52
53libtasn1 2.7 asn1_get_length_ber(3)