4 #ifndef _INC_cSSLDebug_H
5 #define _INC_cSSLDebug_H
39 return eLevel >= m_eThreshold;
47 static const char*
debug_fmt(
const char* format, ...);
53 #if defined(USE_Key_EC)
56 #if defined(USE_SSL_X509_CRT_PARSE)
73 : m_level(level), m_src(
src), m_pszFuncName(pszFuncName)
88 #define SSL_DEBUG_FMT cSSLDebug::debug_fmt
90 #define SSL_DEBUG_MSG( level, text ) cSSLDebug::I().debug_print_msg( level, DEBUGSOURCELINE, text );
91 #define SSL_DEBUG_MSGF( level, args ) cSSLDebug::I().debug_print_msg( level, DEBUGSOURCELINE, cSSLDebug::debug_fmt args );
92 #define SSL_DEBUG_RET( level, text, hRes ) cSSLDebug::I().debug_print_ret( level, DEBUGSOURCELINE, text, hRes );
93 #define SSL_DEBUG_BUF( level, text, buf, len ) cSSLDebug::I().debug_print_buf( level, DEBUGSOURCELINE, text, buf, len );
94 #define SSL_DEBUG_BIGINT( level, text, X ) cSSLDebug::I().debug_print_mpi( level, DEBUGSOURCELINE, text, X );
96 #if defined(USE_Key_EC)
97 #define SSL_DEBUG_ECP( level, text, X ) cSSLDebug::I().debug_print_ecp( level, DEBUGSOURCELINE, text, X );
99 #if defined(USE_SSL_X509_CRT_PARSE)
100 #define SSL_DEBUG_CRT( level, text, crt ) cSSLDebug::I().debug_print_crt( level, DEBUGSOURCELINE, text, crt );
102 #define SSL_DEBUG_FUNC( level, text ) cSSLDebugFunc _debugfunc( level, DEBUGSOURCELINE, text );
105 #define SSL_DEBUG_MSG( level, args ) __noop
106 #define SSL_DEBUG_MSGF( level, args ) __noop
107 #define SSL_DEBUG_RET( level, text, hRes ) __noop
108 #define SSL_DEBUG_BUF( level, text, buf, len ) __noop
109 #define SSL_DEBUG_BIGINT( level, text, X ) __noop
110 #define SSL_DEBUG_ECP( level, text, X ) __noop
111 #define SSL_DEBUG_CRT( level, text, crt ) __noop
112 #define SSL_DEBUG_FUNC( level, text ) __noop
#define GRAYSSL_LINK
Definition: GraySSLInt.h:25
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
Definition: cBigUnsigned.h:22
Definition: cECPGroupParams.h:41
Definition: cKeyWrap.h:25
Definition: cX509Crt.h:20
Definition: cSSLDebug.h:63
~cSSLDebugFunc()
Definition: cSSLDebug.h:78
cSSLDebugFunc(LOGLEV_TYPE level, const cDebugSourceLine &src, const char *pszFuncName)
Definition: cSSLDebug.h:72
const char * m_pszFuncName
Definition: cSSLDebug.h:69
const cDebugSourceLine & m_src
Definition: cSSLDebug.h:68
LOGLEV_TYPE m_level
Definition: cSSLDebug.h:67
Definition: cSSLDebug.h:26
void debug_print_mpi(LOGLEV_TYPE level, cDebugSourceLine src, const char *text, const cBigUnsigned &X) const
void debug_print_pk(LOGLEV_TYPE level, cDebugSourceLine src, const char *text, const cKeyWrap *pk) const
static const char * k_pszPrefix
Definition: cSSLDebug.h:34
static const char * debug_fmt(const char *format,...)
LOGLEV_TYPE m_eThreshold
Definition: cSSLDebug.h:32
void debug_print_msg(LOGLEV_TYPE level, cDebugSourceLine src, const char *text) const
void debug_print_ecp(LOGLEV_TYPE level, cDebugSourceLine src, const char *text, const cECPPoint *X) const
void debug_print_buf(LOGLEV_TYPE level, cDebugSourceLine src, const char *text, const BYTE *buf, size_t len) const
void debug_print_crt(LOGLEV_TYPE level, cDebugSourceLine src, const char *text, const cX509Crt *crt) const
void debug_print_ret(LOGLEV_TYPE level, cDebugSourceLine src, const char *text, HRESULT hRes) const
bool m_bUseLineNumbers
Definition: cSSLDebug.h:31
Definition: StrBuilder.h:18
Definition: cSingleton.h:127
static cSSLDebug &__stdcall I()
Definition: cSingleton.h:199
Definition: GraySSL.cpp:11
LOGLEV_TYPE
Definition: cLogLevel.h:22
Definition: cDebugAssert.h:29
const char * m_pszFunction
Definition: cDebugAssert.h:35