Convert SSL Errors to a text string for diagnostic purposes Pointer (cstr) being description of current value of SSL error
| Return Type | Function name | Arguments |
|---|---|---|
| const char* | ShowErrorSSL | (uint32_t,) |
Declared in file: hzErrcode.h
Defined in file : hzError.cpp
Function Logic:
Function body:
const char* ShowErrorSSL (uint32_t err)
{
// Category: Diagnostics
//
// Convert SSL Errors to a text string for diagnostic purposes
//
// Arguments: 1) err SSL error code
//
// Returns: Pointer (cstr) being description of current value of SSL error
static const char* _err [] =
{
"SSL_ERROR_NONE I/O operation success",
"SSL_ERROR_ZERO_RETURN Closure alert has occured (for clean closure)",
"SSL_ERROR_WANT_READ Read operation incomplete",
"SSL_ERROR_WANT_WRITE Write operation incomplete",
"SSL_ERROR_WANT_CONNECT Connect operation incomplete",
"SSL_ERROR_WANT_ACCEPT Accept operation incomplete",
"SSL_ERROR_WANT_X509_LOOKUP Op did not complete because an app callback has asked to be called again",
"SSL_ERROR_SYSCALL Socket error",
"SSL_ERROR_SSL Library error",
"SSL_ERROR_SSL undefined",
""
} ;
if (err > 9)
return _err[9];
else
return _err[err] ;
}