summaryrefslogtreecommitdiff
path: root/doc/texi/element.c.texi
diff options
context:
space:
mode:
Diffstat (limited to 'doc/texi/element.c.texi')
-rw-r--r--doc/texi/element.c.texi10
1 files changed, 6 insertions, 4 deletions
diff --git a/doc/texi/element.c.texi b/doc/texi/element.c.texi
index 6e40405..9f793e5 100644
--- a/doc/texi/element.c.texi
+++ b/doc/texi/element.c.texi
@@ -122,7 +122,7 @@ pointer to memory cells already allocated (may be @code{NULL} ).
@var{len}: number of bytes of *value: value[0]..value[len-1]. Initialy
holds the sizeof value.
-Returns the value of one element inside a structure.
+Returns the value of one element inside a structure.
If an element is OPTIONAL and this returns
@code{ASN1_ELEMENT_NOT_FOUND} , it means that this element wasn't present
in the der encoding that created the structure. The first element
@@ -176,7 +176,8 @@ encoding of the structure actually used.
@code{ASN1_VALUE_NOT_FOUND} if there isn't any value for the element
selected, and @code{ASN1_MEM_ERROR} if The value vector isn't big enough
to store the result, and in this case @code{len} will contain the number of
-bytes needed.
+bytes needed. On the occasion that the stored data are of zero-length
+this function may return @code{ASN1_SUCCESS} even if the provided @code{len} is zero.
@end deftypefun
@subheading asn1_read_value_type
@@ -194,7 +195,7 @@ holds the sizeof value.
@var{etype}: The type of the value read (ASN1_ETYPE)
-Returns the type and value of one element inside a structure.
+Returns the type and value of one element inside a structure.
If an element is OPTIONAL and this returns
@code{ASN1_ELEMENT_NOT_FOUND} , it means that this element wasn't present
in the der encoding that created the structure. The first element
@@ -248,7 +249,8 @@ encoding of the structure actually used.
@code{ASN1_VALUE_NOT_FOUND} if there isn't any value for the element
selected, and @code{ASN1_MEM_ERROR} if The value vector isn't big enough
to store the result, and in this case @code{len} will contain the number of
-bytes needed.
+bytes needed. On the occasion that the stored data are of zero-length
+this function may return @code{ASN1_SUCCESS} even if the provided @code{len} is zero.
@end deftypefun
@subheading asn1_read_tag