Seth Woolley's Man Viewer

ERR_get_error(3) - ERR_get_error, ERR_get_error_line, ERR_get_error_line_data, ERR_peek_error, ERR_peek_error_line, ERR_peek_error_line_data, ERR_peek_last_error, ERR_peek_last_error_line, ERR_peek_last_error_line_data - obtain error code and data - man 3 ERR_get_error

([section] manual, -k keyword, -K [section] search, -f whatis)
man plain no title

ERR_get_error(3)                    OpenSSL                   ERR_get_error(3)

       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(8,n)
       code and data

        #include <openssl/err.h>

        unsigned long ERR_get_error(void);
        unsigned long ERR_peek_error(void);
        unsigned long ERR_peek_last_error(void);

        unsigned long ERR_get_error_line(const char **file(1,n), int *line);
        unsigned long ERR_peek_error_line(const char **file(1,n), int *line);
        unsigned long ERR_peek_last_error_line(const char **file(1,n), int *line);

        unsigned long ERR_get_error_line_data(const char **file(1,n), int *line,
                const char **data, int *flags);
        unsigned long ERR_peek_error_line_data(const char **file(1,n), int *line,
                const char **data, int *flags);
        unsigned long ERR_peek_last_error_line_data(const char **file(1,n), int *line,
                const char **data, int *flags);

       ERR_get_error() returns the earliest error(8,n) code from the thread's error(8,n)
       queue(1,3) and removes the entry. This function can be called repeatedly
       until there are no more error(8,n) codes to return.

       ERR_peek_error() returns the earliest error(8,n) code from the thread's
       error(8,n) queue(1,3) without modifying it.

       ERR_peek_last_error() returns the latest error(8,n) code from the thread's
       error(8,n) queue(1,3) without modifying it.

       See ERR_GET_LIB(3) for obtaining information about location and reason
       of the error(8,n), and ERR_error_string(3) for human-readable error(8,n) mes-

       ERR_get_error_line(), ERR_peek_error_line() and
       ERR_peek_last_error_line() are the same as the above, but they addi-
       tionally store the file(1,n) name and line number where the error(8,n) occurred
       in(1,8) *file(1,n) and *line, unless these are NULL.

       ERR_get_error_line_data(), ERR_peek_error_line_data() and
       ERR_get_last_error_line_data() store additional data and flags associ-
       ated with the error(8,n) code in(1,8) *data and *flags, unless these are NULL.
       *data contains a string(3,n) if(3,n) *flags&ERR_TXT_STRING. If it has been allo-
       cated by OPENSSL_malloc(), *flags&ERR_TXT_MALLOCED is true.

       The error(8,n) code, or 0 if(3,n) there is no error(8,n) in(1,8) the queue.

       err(3), ERR_error_string(3), ERR_GET_LIB(3)

       ERR_get_error(), ERR_peek_error(), ERR_get_error_line() and
       ERR_peek_error_line() are available in(1,8) all versions of SSLeay and
       OpenSSL. ERR_get_error_line_data() and ERR_peek_error_line_data() were
       added in(1,8) SSLeay 0.9.0.  ERR_peek_last_error(),
       ERR_peek_last_error_line() and ERR_peek_last_error_line_data() were
       added in(1,8) OpenSSL 0.9.7.

0.9.7d                            2002-11-29                  ERR_get_error(3)

References for this manual (incoming links)