updated licenses
[gnutls.git] / lib / minitasn1 / parser_aux.h
blob374f59953f3c5c7003e9b2e761db0d1e9237bd93
1 /*
2 * Copyright (C) 2000-2012 Free Software Foundation, Inc.
4 * This file is part of LIBTASN1.
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.
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.
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
22 #ifndef _PARSER_AUX_H
23 #define _PARSER_AUX_H
25 #define DER_LEN 16
27 /***************************************/
28 /* Functions used by ASN.1 parser */
29 /***************************************/
30 ASN1_TYPE _asn1_add_node (unsigned int type);
32 ASN1_TYPE
33 _asn1_set_value (ASN1_TYPE node, const void *value, unsigned int len);
35 ASN1_TYPE _asn1_set_value_m (ASN1_TYPE node, void *value, unsigned int len);
37 ASN1_TYPE
38 _asn1_set_value_octet (ASN1_TYPE node, const void *value, unsigned int len);
40 ASN1_TYPE
41 _asn1_append_value (ASN1_TYPE node, const void *value, unsigned int len);
43 ASN1_TYPE _asn1_set_name (ASN1_TYPE node, const char *name);
45 ASN1_TYPE _asn1_set_right (ASN1_TYPE node, ASN1_TYPE right);
47 ASN1_TYPE _asn1_get_right (ASN1_TYPE node);
49 ASN1_TYPE _asn1_get_last_right (ASN1_TYPE node);
51 ASN1_TYPE _asn1_set_down (ASN1_TYPE node, ASN1_TYPE down);
53 char *_asn1_get_name (ASN1_TYPE node);
55 ASN1_TYPE _asn1_get_down (ASN1_TYPE node);
57 ASN1_TYPE _asn1_mod_type (ASN1_TYPE node, unsigned int value);
59 void _asn1_remove_node (ASN1_TYPE node);
61 void _asn1_delete_list (void);
63 void _asn1_delete_list_and_nodes (void);
65 char *_asn1_ltostr (long v, char *str);
67 ASN1_TYPE _asn1_find_up (ASN1_TYPE node);
69 asn1_retCode _asn1_change_integer_value (ASN1_TYPE node);
71 asn1_retCode _asn1_expand_object_id (ASN1_TYPE node);
73 asn1_retCode _asn1_type_set_config (ASN1_TYPE node);
75 asn1_retCode _asn1_check_identifier (ASN1_TYPE node);
77 asn1_retCode _asn1_set_default_tag (ASN1_TYPE node);
79 #endif