diff options
author | Simon Josefsson <simon@josefsson.org> | 2010-12-06 14:33:52 +0100 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2010-12-06 14:38:23 +0100 |
commit | 8fa44eb88953ab3f1f81762a683d056c3b4a182f (patch) | |
tree | 7840c4c4c1e04128e82135cba8d6e903e0ede65d /lib/element.c | |
parent | 344781710415052d8e907df1d312c0140405235e (diff) | |
download | libtasn1-8fa44eb88953ab3f1f81762a683d056c3b4a182f.tar.gz libtasn1-8fa44eb88953ab3f1f81762a683d056c3b4a182f.tar.bz2 libtasn1-8fa44eb88953ab3f1f81762a683d056c3b4a182f.zip |
Doc fix.
Reported by Jeffrey Walton <noloader@gmail.com>.
Diffstat (limited to 'lib/element.c')
-rw-r--r-- | lib/element.c | 35 |
1 files changed, 11 insertions, 24 deletions
diff --git a/lib/element.c b/lib/element.c index 51ade14..71b893e 100644 --- a/lib/element.c +++ b/lib/element.c @@ -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; - } |