1asn1_decode_simple_ber(3)          libtasn1          asn1_decode_simple_ber(3)
2
3
4

NAME

6       asn1_decode_simple_ber - API function
7

SYNOPSIS

9       #include <libtasn1.h>
10
11       int  asn1_decode_simple_ber(unsigned  int  etype, const unsigned char *
12       der, unsigned int _der_len,  unsigned  char  **  str,  unsigned  int  *
13       str_len, unsigned int * ber_len);
14

ARGUMENTS

16       unsigned int etype
17                   The type of the string to be encoded (ASN1_ETYPE_)
18
19       const unsigned char * der
20                   the encoded string
21
22       unsigned int _der_len
23                   the bytes of the encoded string
24
25       unsigned char ** str
26                   a pointer to the data
27
28       unsigned int * str_len
29                   the length of the data
30
31       unsigned int * ber_len
32                   the total length occupied by BER (may be NULL)
33

DESCRIPTION

35       Decodes  a  BER  encoded  type. The output is an allocated value of the
36       data. This decodes BER STRINGS only. Other types are decoded as DER.
37

RETURNS

39       ASN1_SUCCESS if successful or an error value.
40
42       Copyright © 2006-2015 Free Software Foundation, Inc..
43       Copying and distribution of this file, with  or  without  modification,
44       are  permitted  in  any  medium  without royalty provided the copyright
45       notice and this notice are preserved.
46

SEE ALSO

48       The full documentation for libtasn1 is maintained as a Texinfo  manual.
49       If  the info and libtasn1 programs are properly installed at your site,
50       the command
51
52              info libtasn1
53
54       should give you access to the complete manual.  As an  alternative  you
55       may obtain the manual from:
56
57              http://www.gnu.org/software/libtasn1/manual/
58
59libtasn1                              4.8            asn1_decode_simple_ber(3)
Impressum