Latest update.
This commit is contained in:
@@ -3,7 +3,8 @@
|
||||
=head1 NAME
|
||||
|
||||
ERR_raise, ERR_raise_data,
|
||||
ERR_put_error, ERR_add_error_data, ERR_add_error_vdata
|
||||
ERR_put_error, ERR_add_error_data, ERR_add_error_vdata,
|
||||
ERR_add_error_txt, ERR_add_error_mem_bio
|
||||
- record an error
|
||||
|
||||
=head1 SYNOPSIS
|
||||
@@ -15,6 +16,8 @@ ERR_put_error, ERR_add_error_data, ERR_add_error_vdata
|
||||
|
||||
void ERR_add_error_data(int num, ...);
|
||||
void ERR_add_error_vdata(int num, va_list arg);
|
||||
void ERR_add_error_txt(const char *sep, const char *txt);
|
||||
void ERR_add_error_mem_bio(const char *sep, BIO *bio);
|
||||
|
||||
Deprecated since OpenSSL 3.0:
|
||||
|
||||
@@ -38,9 +41,23 @@ B<func> of library B<lib>, in line number B<line> of B<file>.
|
||||
This function is usually called by a macro.
|
||||
|
||||
ERR_add_error_data() associates the concatenation of its B<num> string
|
||||
arguments with the error code added last.
|
||||
arguments as additional data with the error code added last.
|
||||
ERR_add_error_vdata() is similar except the argument is a B<va_list>.
|
||||
Multiple calls to these functions append to the current top of the error queue.
|
||||
The total length of the string data per error is limited to 4096 characters.
|
||||
|
||||
ERR_add_error_txt() appends the given text string as additional data to the
|
||||
last error queue entry, after inserting the optional separator string if it is
|
||||
not NULL and the top error entry does not yet have additional data.
|
||||
In case the separator is at the end of the text it is not appended to the data.
|
||||
The B<sep> argument may be for instance "\n" to insert a line break when needed.
|
||||
If the associated data would become more than 4096 characters long
|
||||
(which is the limit given above)
|
||||
it is split over sufficiently many new copies of the last error queue entry.
|
||||
|
||||
ERR_add_error_mem_bio() is the same as ERR_add_error_txt() except that
|
||||
the text string is taken from the given memory BIO.
|
||||
It appends '\0' to the BIO contents if not already NUL-terminated.
|
||||
|
||||
L<ERR_load_strings(3)> can be used to register
|
||||
error strings so that the application can a generate human-readable
|
||||
@@ -76,8 +93,10 @@ the ASN1err() macro.
|
||||
|
||||
=head1 RETURN VALUES
|
||||
|
||||
ERR_raise(), ERR_put_error(), ERR_add_error_data() and
|
||||
ERR_add_error_vdata() return no values.
|
||||
ERR_raise(), ERR_put_error(),
|
||||
ERR_add_error_data(), ERR_add_error_vdata()
|
||||
ERR_add_error_txt(), and ERR_add_error_mem_bio()
|
||||
return no values.
|
||||
|
||||
=head1 NOTES
|
||||
|
||||
@@ -87,6 +106,10 @@ ERR_raise() and ERR_put_error() are implemented as macros.
|
||||
|
||||
L<ERR_load_strings(3)>
|
||||
|
||||
=head1 HISTORY
|
||||
|
||||
B<ERR_add_error_txt> and B<ERR_add_error_mem_bio> were added in OpenSSL 3.0.
|
||||
|
||||
=head1 COPYRIGHT
|
||||
|
||||
Copyright 2000-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||
|
||||
Reference in New Issue
Block a user