version 1.30, 2006/06/19 19:37:29
|
version 1.31, 2006/06/26 22:23:29
|
|
|
public: | public: |
| |
SSLSocket( | SSLSocket( |
PEGASUS_SOCKET socket, |
SocketHandle socket, |
SSLContext * sslcontext, | SSLContext * sslcontext, |
ReadWriteSem * sslContextObjectLock, | ReadWriteSem * sslContextObjectLock, |
Boolean exportConnection = false); | Boolean exportConnection = false); |
|
|
| |
static void uninitializeInterface(); | static void uninitializeInterface(); |
| |
PEGASUS_SOCKET getSocket() {return _socket;} |
SocketHandle getSocket() {return _socket;} |
| |
/** | /** |
Accepts the connection, performing the necessary SSL handshake. | Accepts the connection, performing the necessary SSL handshake. |
|
|
private: | private: |
| |
SSL * _SSLConnection; | SSL * _SSLConnection; |
PEGASUS_SOCKET _socket; |
SocketHandle _socket; |
SSLContext * _SSLContext; | SSLContext * _SSLContext; |
ReadWriteSem * _sslContextObjectLock; | ReadWriteSem * _sslContextObjectLock; |
Uint32 _sslReadErrno; | Uint32 _sslReadErrno; |
|
|
class MP_Socket { | class MP_Socket { |
| |
public: | public: |
MP_Socket(PEGASUS_SOCKET socket); // "normal" socket |
MP_Socket(SocketHandle socket); // "normal" socket |
| |
MP_Socket( | MP_Socket( |
PEGASUS_SOCKET socket, |
SocketHandle socket, |
SSLContext * sslcontext, | SSLContext * sslcontext, |
ReadWriteSem * sslContextObjectLock, | ReadWriteSem * sslContextObjectLock, |
Boolean exportConnection = false); // secure socket | Boolean exportConnection = false); // secure socket |
|
|
| |
Boolean incompleteReadOccurred(Sint32 retCode); | Boolean incompleteReadOccurred(Sint32 retCode); |
| |
PEGASUS_SOCKET getSocket(); |
SocketHandle getSocket(); |
| |
Sint32 read(void* ptr, Uint32 size); | Sint32 read(void* ptr, Uint32 size); |
| |
|
|
Boolean isCertificateVerified(); | Boolean isCertificateVerified(); |
| |
union { | union { |
PEGASUS_SOCKET _socket; |
SocketHandle _socket; |
SSLSocket *_sslsock; | SSLSocket *_sslsock; |
}; | }; |
| |