summaryrefslogtreecommitdiff
path: root/lib/minitasn1/element.c
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2011-10-25 20:31:39 +0200
committerSimon Josefsson <simon@josefsson.org>2011-10-25 20:31:39 +0200
commitc9e0c70d588e0f80d313d13a9ad5f44f62546d9c (patch)
treebd0e5911f12d02e943e78c597045edd2d3942aba /lib/minitasn1/element.c
parent5a110e397e7dc01f7c557ec63811be08ecaa28e7 (diff)
downloadgnutls-c9e0c70d588e0f80d313d13a9ad5f44f62546d9c.tar.gz
Update to libtasn1 2.10.
Diffstat (limited to 'lib/minitasn1/element.c')
-rw-r--r--lib/minitasn1/element.c39
1 files changed, 13 insertions, 26 deletions
diff --git a/lib/minitasn1/element.c b/lib/minitasn1/element.c
index 51ade14f3b..a8fdc929e3 100644
--- a/lib/minitasn1/element.c
+++ b/lib/minitasn1/element.c
@@ -1,6 +1,6 @@
/*
- * Copyright (C) 2000, 2001, 2002, 2003, 2004, 2006, 2008, 2009, 2010
- * Free Software Foundation, Inc.
+ * Copyright (C) 2000, 2001, 2002, 2003, 2004, 2006, 2008, 2009, 2010,
+ * 2011 Free Software Foundation, Inc.
*
* This file is part of LIBTASN1.
*
@@ -264,13 +264,9 @@ _asn1_append_sequence_set (ASN1_TYPE node)
* result=asn1_write_value(cert,
* "tbsCertificate.subject.rdnSequence.?LAST", "NEW", 1);
*
- * Returns:
- *
- * %ASN1_SUCCESS: Set value OK.
- *
- * %ASN1_ELEMENT_NOT_FOUND: NAME is not a valid element.
- *
- * %ASN1_VALUE_NOT_VALID: VALUE has a wrong format.
+ * Returns: %ASN1_SUCCESS if the value was set,
+ * %ASN1_ELEMENT_NOT_FOUND if @name is not a valid element, and
+ * %ASN1_VALUE_NOT_VALID if @ivalue has a wrong format.
**/
asn1_retCode
asn1_write_value (ASN1_TYPE node_root, const char *name,
@@ -697,16 +693,12 @@ asn1_write_value (ASN1_TYPE node_root, const char *name,
* ANY: If NAME indicates an any type, VALUE will indicate the DER
* encoding of the structure actually used.
*
- * Returns:
- *
- * %ASN1_SUCCESS: Set value OK.
- *
- * %ASN1_ELEMENT_NOT_FOUND: NAME is not a valid element.
- *
- * %ASN1_VALUE_NOT_FOUND: There isn't any value for the element selected.
- *
- * %ASN1_MEM_ERROR: The value vector isn't big enough to store the result.
- * In this case LEN will contain the number of bytes needed.
+ * Returns: %ASN1_SUCCESS if value is returned,
+ * %ASN1_ELEMENT_NOT_FOUND if @name is not a valid element,
+ * %ASN1_VALUE_NOT_FOUND if there isn't any value for the element
+ * selected, and %ASN1_MEM_ERROR if The value vector isn't big enough
+ * to store the result, and in this case @len will contain the number of
+ * bytes needed.
**/
asn1_retCode
asn1_read_value (ASN1_TYPE root, const char *name, void *ivalue, int *len)
@@ -883,11 +875,8 @@ asn1_read_value (ASN1_TYPE root, const char *name, void *ivalue, int *len)
* %ASN1_CLASS_UNIVERSAL, %ASN1_CLASS_PRIVATE or
* %ASN1_CLASS_CONTEXT_SPECIFIC.
*
- * Returns:
- *
- * %ASN1_SUCCESS: Set value OK.
- *
- * %ASN1_ELEMENT_NOT_FOUND: NAME is not a valid element.
+ * Returns: %ASN1_SUCCESS if successful, %ASN1_ELEMENT_NOT_FOUND if
+ * @name is not a valid element.
**/
asn1_retCode
asn1_read_tag (ASN1_TYPE root, const char *name, int *tagValue,
@@ -986,7 +975,5 @@ asn1_read_tag (ASN1_TYPE root, const char *name, int *tagValue,
}
}
-
return ASN1_SUCCESS;
-
}