NAME
ERRGETLIB, ERRGETFUNC, ERRGETREASON - get library, function and
reason codeSYNOPSIS
#include
int ERRGETLIB(unsigned long e); int ERRGETFUNC(unsigned long e); int ERRGETREASON(unsigned long e);DESCRIPTION
The error code returned by ERRgeterror() consists of a library number, function code and reason code. ERRGETLIB(), ERRGETFUNC() and ERRGETREASON() 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 sub-library. Note that different
libraries may use the same value to signal different functions and reasons. EERRRRRR...... reason codes such as EERRRRRRMMAALLLLOOCCFFAAIILLUURREE are globallyunique. However, when checking for sub-library specific reason codes,
be sure to also compare the library number. ERRGETLIB(), ERRGETFUNC() and ERRGETREASON() are macros.RETURN VALUES
The library number, function code and reason code respectively.SEE ALSO
err(3), ERRgeterror(3) HISTORY ERRGETLIB(), ERRGETFUNC() and ERRGETREASON() are available in all versions of SSLeay and OpenSSL.0.9.7l 2000-01-31 ERRGETLIB(3)