1asn1_get_octet_der(3) libtasn1 asn1_get_octet_der(3)
2
3
4
6 asn1_get_octet_der - API function
7
9 #include <libtasn1.h>
10
11 int asn1_get_octet_der(const unsigned char * der, int der_len, int *
12 ret_len, unsigned char * str, int str_size, int * str_len);
13
15 const unsigned char * der
16 DER data to decode containing the OCTET SEQUENCE.
17
18 int der_len The length of the der data to decode.
19
20 int * ret_len
21 Output variable containing the encoded length of the DER
22 data.
23
24 unsigned char * str
25 Pre-allocated output buffer to put decoded OCTET SEQUENCE
26 in.
27
28 int str_size
29 Length of pre-allocated output buffer.
30
31 int * str_len
32 Output variable containing the length of the contents of
33 the OCTET SEQUENCE.
34
36 Extract an OCTET SEQUENCE from DER data. Note that this function ex‐
37 pects the DER data past the tag field, i.e., the length and content
38 octets.
39
41 Returns ASN1_SUCCESS on success, or an error.
42
44 Copyright © 2006-2022 Free Software Foundation, Inc..
45 Copying and distribution of this file, with or without modification,
46 are permitted in any medium without royalty provided the copyright no‐
47 tice and this notice are preserved.
48
50 The full documentation for libtasn1 is maintained as a Texinfo manual.
51 If the info and libtasn1 programs are properly installed at your site,
52 the command
53
54 info libtasn1
55
56 should give you access to the complete manual. As an alternative you
57 may obtain the manual from:
58
59 https://www.gnu.org/software/libtasn1/manual/
60
61libtasn1 4.19.0 asn1_get_octet_der(3)