11 #ifndef _OsSSLConnectionSocket_h_ 12 #define _OsSSLConnectionSocket_h_ 24 #include <openssl/crypto.h> 25 #include <openssl/x509.h> 26 #include <openssl/pem.h> 27 #include <openssl/ssl.h> 28 #include <openssl/err.h> 47 OsSSLConnectionSocket(
int remoteHostPort,
48 const char* remoteHostName,
49 long timeoutInSecs = 0
52 OsSSLConnectionSocket(
int connectedSocketDescriptor,
long timeoutInSecs = 0);
54 OsSSLConnectionSocket(SSL *s,
int connectedSocketDescriptor);
57 ~OsSSLConnectionSocket();
65 virtual int write(
const char* buffer,
int bufferLength);
75 virtual int write(
const char* buffer,
int bufferLength,
long waitMilliseconds);
81 virtual int read(
char* buffer,
int bufferLength);
90 virtual int read(
char* buffer,
int bufferLength,
102 virtual int read(
char* buffer,
int bufferLength,
long waitMilliseconds);
110 virtual void close();
157 void SSLInitSocket(
int socket,
long timeoutInSecs);
159 OsSSLConnectionSocket(
const OsSSLConnectionSocket& rOsSSLConnectionSocket);
162 OsSSLConnectionSocket();
165 OsSSLConnectionSocket& operator=(
const OsSSLConnectionSocket& rhs);
173 #endif // _OsSSLConnectionSocket_h_ IpProtocolSocketType
Definition: OsSocket.h:92
virtual int write(const char *buffer, int bufferLength, const char *ipAddress, int port)
Definition: OsSocket.h:117
virtual int read(char *buffer, int bufferLength)
param: waitMilliseconds - The maximum number of milliseconds to block. This may be set to zero...
Definition: OsConnectionSocket.cpp:304
virtual void close()
param: waitMilliseconds - The maximum number of milliseconds to block. This may be set to zero in whi...
Definition: OsSocket.cpp:692
virtual bool isEncrypted() const
Is this connection encrypted using TLS/SSL?
Definition: OsConnectionSocket.cpp:347
virtual UtlBoolean reconnect()
Definition: OsConnectionSocket.cpp:295
Definition: UtlString.h:48
virtual OsSocket::IpProtocolSocketType getIpProtocol() const
param: waitMilliseconds - The maximum number of milliseconds to block. This may be set to zero in whi...
Definition: OsConnectionSocket.cpp:340
Definition: UtlSList.h:47
Definition: OsConnectionSocket.h:34
int UtlBoolean
Definition: UtlDefs.h:41
virtual bool peerIdentity(UtlSList *altNames=NULL, UtlString *commonName=NULL) const
Get any authenticated peer host names.
Definition: OsConnectionSocket.cpp:354