159191Skris=pod 259191Skris 359191Skris=head1 NAME 459191Skris 559191SkrisERR_put_error, ERR_add_error_data - record an error 659191Skris 759191Skris=head1 SYNOPSIS 859191Skris 959191Skris #include <openssl/err.h> 1059191Skris 1159191Skris void ERR_put_error(int lib, int func, int reason, const char *file, 1259191Skris int line); 1359191Skris 1459191Skris void ERR_add_error_data(int num, ...); 1559191Skris 1659191Skris=head1 DESCRIPTION 1759191Skris 1859191SkrisERR_put_error() adds an error code to the thread's error queue. It 1959191Skrissignals that the error of reason code B<reason> occurred in function 2059191SkrisB<func> of library B<lib>, in line number B<line> of B<file>. 2159191SkrisThis function is usually called by a macro. 2259191Skris 2359191SkrisERR_add_error_data() associates the concatenation of its B<num> string 2459191Skrisarguments with the error code added last. 2559191Skris 2659191SkrisL<ERR_load_strings(3)|ERR_load_strings(3)> can be used to register 2759191Skriserror strings so that the application can a generate human-readable 2859191Skriserror messages for the error code. 2959191Skris 3059191Skris=head1 RETURN VALUES 3159191Skris 3259191SkrisERR_put_error() and ERR_add_error_data() return 3359191Skrisno values. 3459191Skris 3559191Skris=head1 SEE ALSO 3659191Skris 3759191SkrisL<err(3)|err(3)>, L<ERR_load_strings(3)|ERR_load_strings(3)> 3859191Skris 3959191Skris=head1 HISTORY 4059191Skris 4159191SkrisERR_put_error() is available in all versions of SSLeay and OpenSSL. 4259191SkrisERR_add_error_data() was added in SSLeay 0.9.0. 4359191Skris 4459191Skris=cut 45