*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->NetBSD man pages -> ERR_GET_LIB (3)              
Title
Content
Arch
Section
 

ERR_GET_LIB(3)

Contents


NAME    [Toc]    [Back]

       ERR_GET_LIB, ERR_GET_FUNC, ERR_GET_REASON - get library,
       function and reason code

LIBRARY    [Toc]    [Back]

       libcrypto, -lcrypto

SYNOPSIS    [Toc]    [Back]

        #include <openssl/err.h>

        int ERR_GET_LIB(unsigned long e);

        int ERR_GET_FUNC(unsigned long e);

        int ERR_GET_REASON(unsigned long e);

DESCRIPTION    [Toc]    [Back]

       The error code returned by ERR_get_error() consists of a
       library number, function code and reason code.
       ERR_GET_LIB(), ERR_GET_FUNC() and ERR_GET_REASON() can be
       used to extract these.

       The library number and function code describe where the
       error occurred, the reason code is the information about
       what went wrong.

       Each sub-library of OpenSSL has a unique library number;
       function and reason codes are unique within each sublibrary.
  Note that different libraries may use the same
       value to signal different functions and reasons.

       ERR_R_... reason codes such as ERR_R_MALLOC_FAILURE are
       globally unique. However, when checking for sub-library
       specific reason codes, be sure to also compare the library
       number.

       ERR_GET_LIB(), ERR_GET_FUNC() and ERR_GET_REASON() are
       macros.

RETURN VALUES    [Toc]    [Back]

       The library number, function code and reason code respectively.

SEE ALSO    [Toc]    [Back]

      
      
       openssl_err(3), ERR_get_error(3)

HISTORY    [Toc]    [Back]

       ERR_GET_LIB(), ERR_GET_FUNC() and ERR_GET_REASON() are
       available in all versions of SSLeay and OpenSSL.



2000-07-22                    0.9.6g               ERR_GET_LIB(3)
[ Back ]
 Similar pages
Name OS Title
pthread_use_only_cpu Tru64 Restricts a thread to running only on the specified CPU. If that CPU is unavailable for any reason, ...
iconv IRIX code conversion function
iconv_close IRIX code conversion deallocation function
iconv_open IRIX code conversion allocation function
alGetErrorString IRIX get a string corresponding to an Audio Library error code
ipsec_strerror NetBSD error code for IPsec policy manipulation library
sconv HP-UX hp9000 utility for Simplified-Chinese code code-converter
dmFS1016Decode IRIX implements the US Federal Standard 1016 4800/7200/9600 bits/s CELP (Code Excited Linear Predictive) Voice Code
dmFS1016Encode IRIX implements the US Federal Standard 1016 4800/7200/9600 bits/s CELP (Code Excited Linear Predictive) Voice Code
xsubpp OpenBSD compiler to convert Perl XS code into C code
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service