summaryrefslogtreecommitdiff
path: root/lib/element.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2012-10-06 14:29:37 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2012-10-06 14:29:37 +0200
commit22dd88046a752020c9b7aec5710231da92cdbeb7 (patch)
tree64e9155520d48d3ca7df5668f3492bd2354da543 /lib/element.c
parent40e7731b1ff6b250744b76216945308dc7146213 (diff)
downloadlibtasn1-22dd88046a752020c9b7aec5710231da92cdbeb7.tar.gz
libtasn1-22dd88046a752020c9b7aec5710231da92cdbeb7.tar.bz2
libtasn1-22dd88046a752020c9b7aec5710231da92cdbeb7.zip
asn_ -> asn1_
Diffstat (limited to 'lib/element.c')
-rw-r--r--lib/element.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/element.c b/lib/element.c
index ee10478..6105620 100644
--- a/lib/element.c
+++ b/lib/element.c
@@ -34,9 +34,9 @@
#include "element.h"
void
-_asn1_hierarchical_name (asn_node_t node, char *name, int name_size)
+_asn1_hierarchical_name (asn1_node_t node, char *name, int name_size)
{
- asn_node_t p;
+ asn1_node_t p;
char tmp_name[64];
p = node;
@@ -127,9 +127,9 @@ _asn1_convert_integer (const unsigned char *value, unsigned char *value_out,
int
-_asn1_append_sequence_set (asn_node_t node)
+_asn1_append_sequence_set (asn1_node_t node)
{
- asn_node_t p, p2;
+ asn1_node_t p, p2;
char temp[10];
long n;
@@ -268,10 +268,10 @@ _asn1_append_sequence_set (asn_node_t node)
* %ASN1_VALUE_NOT_VALID if @ivalue has a wrong format.
**/
int
-asn1_write_value (asn_node_t node_root, const char *name,
+asn1_write_value (asn1_node_t node_root, const char *name,
const void *ivalue, int len)
{
- asn_node_t node, p, p2;
+ asn1_node_t node, p, p2;
unsigned char *temp, *value_temp = NULL, *default_temp = NULL;
int len2, k, k2, negative;
size_t i;
@@ -694,9 +694,9 @@ asn1_write_value (asn_node_t node_root, const char *name,
* bytes needed.
**/
int
-asn1_read_value (asn_node_t root, const char *name, void *ivalue, int *len)
+asn1_read_value (asn1_node_t root, const char *name, void *ivalue, int *len)
{
- asn_node_t node, p, p2;
+ asn1_node_t node, p, p2;
int len2, len3;
int value_size = *len;
unsigned char *value = ivalue;
@@ -872,10 +872,10 @@ asn1_read_value (asn_node_t root, const char *name, void *ivalue, int *len)
* @name is not a valid element.
**/
int
-asn1_read_tag (asn_node_t root, const char *name, int *tagValue,
+asn1_read_tag (asn1_node_t root, const char *name, int *tagValue,
int *classValue)
{
- asn_node_t node, p, pTag;
+ asn1_node_t node, p, pTag;
node = asn1_find_node (root, name);
if (node == NULL)
@@ -974,14 +974,14 @@ asn1_read_tag (asn_node_t root, const char *name, int *tagValue,
/**
* asn1_read_node_value:
* @node: pointer to a node.
- * @data: a point to a asn_data_node_st
+ * @data: a point to a asn1_data_node_st
*
- * Returns the value a data node inside a asn_node_t structure.
+ * Returns the value a data node inside a asn1_node_t structure.
* The data returned should be handled as constant values.
*
* Returns: %ASN1_SUCCESS if the node exists.
**/
-int asn1_read_node_value (asn_node_t node, asn_data_node_st* data)
+int asn1_read_node_value (asn1_node_t node, asn1_data_node_st* data)
{
data->name = node->name;
data->value = node->value;