00001
00002 #ifndef ___SECSSL_TRACE_H___
00003 #define ___SECSSL_TRACE_H___
00004
00005
00006
00007
00008
00009
00010
00011
00012 #include <XrdOuc/XrdOucTrace.hh>
00013
00014 #ifndef NODEBUG
00015
00016 #include <iostream>
00017
00018 #define QTRACE(act) (SSLxTrace && (SSLxTrace->What & TRACE_ ## act))
00019 #define PRINT(y) {if (SSLxTrace) {SSLxTrace->Beg(epname); \
00020 cerr <<y; SSLxTrace->End();}}
00021 #define TRACE(act,x) if (QTRACE(act)) PRINT(x)
00022 #define DEBUG(y) TRACE(Debug,y)
00023 #define EPNAME(x) const char *epname = x;
00024
00025 #else
00026
00027 #define QTRACE(x)
00028 #define PRINT(x)
00029 #define TRACE(x,y)
00030 #define DEBUG(x)
00031 #define EPNAME(x)
00032
00033 #endif
00034
00035 #define TRACE_ALL 0x000f
00036 #define TRACE_Authenxx 0x0007
00037 #define TRACE_Authen 0x0004
00038 #define TRACE_Debug 0x0001
00039 #define TRACE_Identity 0x0002
00040
00041 #endif