Current Path : /usr/opt/openssl11/share/doc/openssl/html/man3/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/opt/openssl11/share/doc/openssl/html/man3/ERR_peek_last_error.html |
<?xml version="1.0" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>ERR_get_error</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <link rev="made" href="mailto:root@hsxx.drive.ne.jp" /> </head> <body style="background-color: white"> <!-- INDEX BEGIN --> <div name="index"> <p><a name="__index__"></a></p> <ul> <li><a href="#name">NAME</a></li> <li><a href="#synopsis">SYNOPSIS</a></li> <li><a href="#description">DESCRIPTION</a></li> <li><a href="#return_values">RETURN VALUES</a></li> <li><a href="#see_also">SEE ALSO</a></li> <li><a href="#copyright">COPYRIGHT</a></li> </ul> <hr name="index" /> </div> <!-- INDEX END --> <p> </p> <hr /> <h1><a name="name">NAME</a></h1> <p>ERR_get_error, ERR_peek_error, ERR_peek_last_error, ERR_get_error_line, ERR_peek_error_line, ERR_peek_last_error_line, ERR_get_error_line_data, ERR_peek_error_line_data, ERR_peek_last_error_line_data - obtain error code and data</p> <p> </p> <hr /> <h1><a name="synopsis">SYNOPSIS</a></h1> <pre> #include <openssl/err.h></pre> <pre> unsigned long ERR_get_error(void); unsigned long ERR_peek_error(void); unsigned long ERR_peek_last_error(void);</pre> <pre> unsigned long ERR_get_error_line(const char **file, int *line); unsigned long ERR_peek_error_line(const char **file, int *line); unsigned long ERR_peek_last_error_line(const char **file, int *line);</pre> <pre> unsigned long ERR_get_error_line_data(const char **file, int *line, const char **data, int *flags); unsigned long ERR_peek_error_line_data(const char **file, int *line, const char **data, int *flags); unsigned long ERR_peek_last_error_line_data(const char **file, int *line, const char **data, int *flags);</pre> <p> </p> <hr /> <h1><a name="description">DESCRIPTION</a></h1> <p><code>ERR_get_error()</code> returns the earliest error code from the thread's error queue and removes the entry. This function can be called repeatedly until there are no more error codes to return.</p> <p><code>ERR_peek_error()</code> returns the earliest error code from the thread's error queue without modifying it.</p> <p><code>ERR_peek_last_error()</code> returns the latest error code from the thread's error queue without modifying it.</p> <p>See <em>ERR_GET_LIB(3)</em> for obtaining information about location and reason of the error, and <em>ERR_error_string(3)</em> for human-readable error messages.</p> <p><code>ERR_get_error_line()</code>, <code>ERR_peek_error_line()</code> and <code>ERR_peek_last_error_line()</code> are the same as the above, but they additionally store the filename and line number where the error occurred in *<strong>file</strong> and *<strong>line</strong>, unless these are <strong>NULL</strong>.</p> <p><code>ERR_get_error_line_data()</code>, <code>ERR_peek_error_line_data()</code> and <code>ERR_peek_last_error_line_data()</code> store additional data and flags associated with the error code in *<strong>data</strong> and *<strong>flags</strong>, unless these are <strong>NULL</strong>. *<strong>data</strong> contains a string if *<strong>flags</strong>&<strong>ERR_TXT_STRING</strong> is true.</p> <p>An application <strong>MUST NOT</strong> free the *<strong>data</strong> pointer (or any other pointers returned by these functions) with <code>OPENSSL_free()</code> as freeing is handled automatically by the error library.</p> <p> </p> <hr /> <h1><a name="return_values">RETURN VALUES</a></h1> <p>The error code, or 0 if there is no error in the queue.</p> <p> </p> <hr /> <h1><a name="see_also">SEE ALSO</a></h1> <p><em>ERR_error_string(3)</em>, <em>ERR_GET_LIB(3)</em></p> <p> </p> <hr /> <h1><a name="copyright">COPYRIGHT</a></h1> <p>Copyright 2000-2020 The OpenSSL Project Authors. All Rights Reserved.</p> <p>Licensed under the OpenSSL license (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <a href="https://www.openssl.org/source/license.html">https://www.openssl.org/source/license.html</a>.</p> </body> </html>