2 * Copyright (C) 2000, 2001, 2004, 2006, 2007, 2008, 2009, 2010 Free
3 * Software Foundation, Inc.
5 * This file is part of LIBTASN1.
7 * The LIBTASN1 library is free software; you can redistribute it
8 * and/or modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
28 /***************************************/
29 /* Functions used by ASN.1 parser */
30 /***************************************/
31 ASN1_TYPE _asn1_add_node (unsigned int type);
34 _asn1_set_value (ASN1_TYPE node, const void *value, unsigned int len);
36 ASN1_TYPE _asn1_set_value_m (ASN1_TYPE node, void *value, unsigned int len);
39 _asn1_set_value_octet (ASN1_TYPE node, const void *value, unsigned int len);
42 _asn1_append_value (ASN1_TYPE node, const void *value, unsigned int len);
44 ASN1_TYPE _asn1_set_name (ASN1_TYPE node, const char *name);
46 ASN1_TYPE _asn1_set_right (ASN1_TYPE node, ASN1_TYPE right);
48 ASN1_TYPE _asn1_get_right (ASN1_TYPE node);
50 ASN1_TYPE _asn1_get_last_right (ASN1_TYPE node);
52 ASN1_TYPE _asn1_set_down (ASN1_TYPE node, ASN1_TYPE down);
54 char *_asn1_get_name (ASN1_TYPE node);
56 ASN1_TYPE _asn1_get_down (ASN1_TYPE node);
58 ASN1_TYPE _asn1_mod_type (ASN1_TYPE node, unsigned int value);
60 void _asn1_remove_node (ASN1_TYPE node);
62 void _asn1_delete_list (void);
64 void _asn1_delete_list_and_nodes (void);
66 char *_asn1_ltostr (long v, char *str);
68 ASN1_TYPE _asn1_find_up (ASN1_TYPE node);
70 asn1_retCode _asn1_change_integer_value (ASN1_TYPE node);
72 asn1_retCode _asn1_expand_object_id (ASN1_TYPE node);
74 asn1_retCode _asn1_type_set_config (ASN1_TYPE node);
76 asn1_retCode _asn1_check_identifier (ASN1_TYPE node);
78 asn1_retCode _asn1_set_default_tag (ASN1_TYPE node);