diff options
Diffstat (limited to 'doc/texi/asn1_read_value.texi')
-rw-r--r-- | doc/texi/asn1_read_value.texi | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/texi/asn1_read_value.texi b/doc/texi/asn1_read_value.texi index b6bb18c..f1ea8b6 100644 --- a/doc/texi/asn1_read_value.texi +++ b/doc/texi/asn1_read_value.texi @@ -11,7 +11,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 @@ -65,6 +65,7 @@ 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 |