Imported Upstream version 4.9
[platform/upstream/libtasn1.git] / lib / element.h
1 /*
2  * Copyright (C) 2000-2014 Free Software Foundation, Inc.
3  *
4  * This file is part of LIBTASN1.
5  *
6  * The LIBTASN1 library is free software; you can redistribute it
7  * and/or modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19  * 02110-1301, USA
20  */
21
22 #ifndef _ELEMENT_H
23 #define _ELEMENT_H
24
25
26 struct node_tail_cache_st
27 {
28         asn1_node head; /* the first element of the sequence */
29         asn1_node tail;
30 };
31
32 int _asn1_append_sequence_set (asn1_node node, struct node_tail_cache_st *pcached);
33
34 int _asn1_convert_integer (const unsigned char *value,
35                            unsigned char *value_out,
36                            int value_out_size, int *len);
37
38 void _asn1_hierarchical_name (asn1_node node, char *name, int name_size);
39
40 #endif