1 #ifndef __XRD_TLS_SOCKET_HH__
2 #define __XRD_TLS_SOCKET_HH__
33 struct XrdTlsSocketImpl;
79 bool isClient,
bool serial=
true );
166 bool isClient,
bool serial=
true,
const char *tid=
"" );
257 void AcceptEMsg(std::string *eWhy,
const char *reason);
258 int Diagnose(
const char *what,
int sslrc,
int tcode);
265 #endif // __XRD_TLS_IO_HH__
XrdTls::RC Accept(std::string *eMsg=0)
void SetTraceID(const char *tid)
Definition: XrdTlsSocket.hh:225
Always block during handshake.
Definition: XrdTlsSocket.hh:53
Definition: XrdTlsSocket.hh:225
int Diagnose(const char *what, int sslrc, int tcode)
XrdTls::RC Connect(const char *thehost=0, std::string *eWhy=0)
XrdTls::RC Read(char *buffer, size_t size, int &bytesRead)
Read from the TLS connection. If necessary, a handshake will be done.
bool Wait4OK(bool wantRead)
Socket wrapper for TLS I/O.
Definition: XrdTlsSocket.hh:39
Definition: XrdSysError.hh:89
int Pending(bool any=true)
SDType
Definition: XrdTlsSocket.hh:225
HS_Mode
Definition: XrdTlsSocket.hh:51
RC
Definition: XrdTls.hh:40
blocking read non-blocking write
Definition: XrdTlsSocket.hh:47
~XrdTlsSocket()
Destructor.
RW_Mode
Definition: XrdTlsSocket.hh:43
void AcceptEMsg(std::string *eWhy, const char *reason)
std::string Err2Text(int sslerr)
XrdTlsPeerCerts * getCerts(bool ver=true)
blocking read blocking write
Definition: XrdTlsSocket.hh:48
void Shutdown(SDType=sdImmed)
Definition: XrdNetAddrInfo.hh:53
XrdTls::RC Write(const char *buffer, size_t size, int &bytesOut)
Definition: XrdTlsSocket.hh:225
XrdTlsSocketImpl * pImpl
Definition: XrdTlsSocket.hh:263
Definition: XrdTlsContext.hh:36
XrdTlsContext * Context()
XrdTls::RC Peek(char *buffer, size_t size, int &bytesPeek)
Non-blocking read non-blocking write.
Definition: XrdTlsSocket.hh:45
Do not block during handshake.
Definition: XrdTlsSocket.hh:54
const char * Init(XrdTlsContext &ctx, int sfd, RW_Mode rwm, HS_Mode hsm, bool isClient, bool serial=true, const char *tid="")
Definition: XrdTlsPeerCerts.hh:34
Non-blocking read blocking write.
Definition: XrdTlsSocket.hh:46