![]() |
XRootD
|
#include <XrdTls.hh>
Public Types | |
typedef void(* | msgCB_t) (const char *tid, const char *msg, bool sslmsg) |
enum | RC { TLS_AOK = 0 , TLS_CON_Closed , TLS_CRT_Missing , TLS_CTX_Missing , TLS_HNV_Error , TLS_SSL_Error , TLS_SYS_Error , TLS_UNK_Error , TLS_VER_Error , TLS_WantAccept , TLS_WantConnect , TLS_WantRead , TLS_WantWrite } |
Static Public Member Functions | |
static void | ClearErrorQueue () |
Clear the SSL error queue for the calling thread. More... | |
static void | Emsg (const char *tid, const char *msg=0, bool flush=true) |
static std::string | RC2Text (XrdTls::RC rc, bool dbg=false) |
static void | SetDebug (int opts, msgCB_t logP) |
static void | SetDebug (int opts, XrdSysLogger *logP=0) |
static void | SetMsgCB (msgCB_t cbP) |
static RC | ssl2RC (int sslrc) |
static const char * | ssl2Text (int sslrc, const char *dflt="unknown_error") |
Static Public Attributes | |
static const int | dbgALL = 7 |
Turn debugging for everything. More... | |
static const int | dbgCTX = 1 |
Turn debugging in for context operations. More... | |
static const int | dbgOFF = 0 |
Turn debugging off (initial deault) More... | |
static const int | dbgOUT = 8 |
Force msgs to stderr for easier client debug. More... | |
static const int | dbgSIO = 4 |
Turn debugging in for socket I/O. More... | |
static const int | dbgSOK = 2 |
Turn debugging in for socket operations. More... | |
typedef void(* XrdTls::msgCB_t) (const char *tid, const char *msg, bool sslmsg) |
enum XrdTls::RC |
Definition at line 40 of file XrdTls.hh.
|
static |
Clear the SSL error queue for the calling thread.
Definition at line 265 of file XrdTls.cc.
Referenced by XrdCl::Tls::ClearErrorQueue(), and XrdXrootdProtocol::Process2().
|
static |
Route an optional error message and flush outstanding messages.
tid | - Optional trace identifier. |
msg | - An optional message. |
flush | - If true prints all outstanding ssl messages. Otherwise, it clears all outstanding sll messages. |
Definition at line 104 of file XrdTls.cc.
References XrdSsi::msgCB.
Referenced by XrdTlsCrl::Refresh(), XrdTlsContext::SetCrlRefresh(), XrdTlsFlush::Setup_Flusher(), and XrdTlsSocket::Shutdown().
|
static |
Convert TLS RC code to a reason string.
rc | - The TLS return code. |
dbg | - True to include additional identifying text. Otherwise, a concise message decribing the error is returned. |
Definition at line 127 of file XrdTls.cc.
References TLS_CON_Closed, TLS_CRT_Missing, TLS_CTX_Missing, TLS_HNV_Error, TLS_SSL_Error, TLS_SYS_Error, TLS_UNK_Error, TLS_VER_Error, TLS_WantAccept, TLS_WantConnect, TLS_WantRead, TLS_WantWrite, and XrdSysE2T().
Referenced by XrdLinkXeq::TLS_Error().
|
static |
Definition at line 186 of file XrdTls.cc.
References opts, XrdSysTrace::SetLogger(), XrdTlsGlobal::SysTrace, and XrdSysTrace::What.
|
static |
Definition at line 177 of file XrdTls.cc.
References dbgOUT, opts, XrdSysTrace::SetLogger(), XrdTlsGlobal::SysTrace, and XrdSysTrace::What.
Referenced by XrdTlsContext::XrdTlsContext().
|
static |
Definition at line 196 of file XrdTls.cc.
References XrdSsi::msgCB.
|
static |
Convert SSL error to TLS::RC code.
sslrc | - the SSL error return code. |
Definition at line 205 of file XrdTls.cc.
References TLS_AOK, TLS_CON_Closed, TLS_SSL_Error, TLS_SYS_Error, TLS_UNK_Error, TLS_WantAccept, TLS_WantConnect, TLS_WantRead, and TLS_WantWrite.
Referenced by XrdTlsSocket::Accept(), XrdTlsSocket::Connect(), XrdTlsSocket::Peek(), XrdTlsSocket::Read(), and XrdTlsSocket::Write().
|
static |
Convert SSL error to text.
sslrc | - the SSL error return code. |
dflt | - the default to be return when mapping does no exist. |
Definition at line 235 of file XrdTls.cc.
|
static |
Turn debugging for everything.
Definition at line 103 of file XrdTls.hh.
Referenced by XrdTlsContext::XrdTlsContext().
|
static |
Turn debugging in for context operations.
Definition at line 100 of file XrdTls.hh.
Referenced by XrdTlsContext::XrdTlsContext(), and XrdTlsFlush::Flusher().
|
static |
Turn debugging off (initial deault)
Set debugging on or off.
opts | One of or more of the options below. |
logP | Pointer to XrdSysLogger or the message callback (see above) to route messages. If nil messages are routed to stderr. |
|
static |
Force msgs to stderr for easier client debug.
Definition at line 104 of file XrdTls.hh.
Referenced by XrdTlsContext::XrdTlsContext(), and SetDebug().
|
static |
Turn debugging in for socket I/O.
Definition at line 102 of file XrdTls.hh.
Referenced by XrdTlsContext::XrdTlsContext(), XrdTlsSocket::Peek(), XrdTlsSocket::Read(), and XrdTlsSocket::Write().
|
static |
Turn debugging in for socket operations.
Definition at line 101 of file XrdTls.hh.
Referenced by XrdTlsContext::XrdTlsContext(), XrdTlsSocket::Accept(), and XrdTlsSocket::Connect().