Clarify docs.
Remove reference to ERR_TXT_MALLOCED in the error library as that is
only used internally. Indicate that returned error data must not be
freed.
(cherry picked from commit f2d678e6e8
)
This commit is contained in:
parent
0450d6c177
commit
8e04001f85
1 changed files with 5 additions and 2 deletions
|
@ -52,8 +52,11 @@ ERR_get_error_line_data(), ERR_peek_error_line_data() and
|
||||||
ERR_get_last_error_line_data() store additional data and flags
|
ERR_get_last_error_line_data() store additional data and flags
|
||||||
associated with the error code in *B<data>
|
associated with the error code in *B<data>
|
||||||
and *B<flags>, unless these are B<NULL>. *B<data> contains a string
|
and *B<flags>, unless these are B<NULL>. *B<data> contains a string
|
||||||
if *B<flags>&B<ERR_TXT_STRING>. If it has been allocated by OPENSSL_malloc(),
|
if *B<flags>&B<ERR_TXT_STRING> is true.
|
||||||
*B<flags>&B<ERR_TXT_MALLOCED> is true.
|
|
||||||
|
An application B<MUST NOT> free the *B<data> pointer (or any other pointers
|
||||||
|
returned by these functions) with OPENSSL_free() as freeing is handled
|
||||||
|
automatically by the error library.
|
||||||
|
|
||||||
=head1 RETURN VALUES
|
=head1 RETURN VALUES
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue