Go to the documentation of this file. 1 #ifndef __XRD_TLS_SOCKET_HH__
2 #define __XRD_TLS_SOCKET_HH__
33 struct XrdTlsSocketImpl;
160 bool isClient,
const char *tid=
"" );
252 int Diagnose(
const char *what,
int sslrc,
int tcode);
258 #endif // __XRD_TLS_IO_HH__
void SetTraceID(const char *tid)
RW_Mode
Definition: XrdTlsSocket.hh:44
@ TLS_RNB_WBL
Non-blocking read blocking write.
Definition: XrdTlsSocket.hh:46
bool Wait4OK(bool wantRead)
@ sdForce
Definition: XrdTlsSocket.hh:219
XrdTls::RC Read(char *buffer, size_t size, int &bytesRead)
Read from the TLS connection. If necessary, a handshake will be done.
Definition: XrdNetAddrInfo.hh:54
@ sdWait
Definition: XrdTlsSocket.hh:219
@ TLS_RBL_WBL
blocking read blocking write
Definition: XrdTlsSocket.hh:48
int Diagnose(const char *what, int sslrc, int tcode)
~XrdTlsSocket()
Destructor.
XrdTls::RC Write(const char *buffer, size_t size, int &bytesOut)
Definition: XrdTlsContext.hh:37
SDType
Definition: XrdTlsSocket.hh:219
@ sdImmed
Definition: XrdTlsSocket.hh:219
@ TLS_HS_NOBLK
Do not block during handshake.
Definition: XrdTlsSocket.hh:54
const char * Init(XrdTlsContext &ctx, int sfd, RW_Mode rwm, HS_Mode hsm, bool isClient, const char *tid="")
void Shutdown(SDType=sdImmed)
int Pending(bool any=true)
XrdTlsPeerCerts * getCerts(bool ver=true)
Socket wrapper for TLS I/O.
Definition: XrdTlsSocket.hh:40
@ TLS_RBL_WNB
blocking read non-blocking write
Definition: XrdTlsSocket.hh:47
XrdTlsContext * Context()
XrdTls::RC Connect(const char *thehost=0, std::string *eWhy=0)
std::string Err2Text(int sslerr)
@ TLS_HS_BLOCK
Always block during handshake.
Definition: XrdTlsSocket.hh:53
XrdTls::RC Accept(std::string *eMsg=0)
Definition: XrdTlsPeerCerts.hh:35
Definition: XrdSysError.hh:90
void AcceptEMsg(std::string *eWhy, const char *reason)
XrdTls::RC Peek(char *buffer, size_t size, int &bytesPeek)
XrdTlsSocketImpl * pImpl
Definition: XrdTlsSocket.hh:256
HS_Mode
Definition: XrdTlsSocket.hh:52
@ TLS_RNB_WNB
Non-blocking read non-blocking write.
Definition: XrdTlsSocket.hh:45
XrdTlsSocket(XrdTlsContext &ctx, int sfd, RW_Mode rwm, HS_Mode hsm, bool isClient)
RC
Definition: XrdTls.hh:40