buggy_openssl_with_fullduplex/ssl_process.h

31 lines
473 B
C
Raw Normal View History

2013-09-09 14:11:51 +01:00
#ifndef __SSL_PROCESS__
#define __SSL_PROCESS__
#include <openssl/ssl.h>
#include <openssl/err.h>
class SSLProcess
{
public:
virtual ~SSLProcess();
virtual void init() = 0;
protected:
SSLProcess(bool isServer);
void sslInit();
bool isServer()
{ return _isServer; }
SSL_CTX* _ctx;
private:
SSLProcess();
SSLProcess(const SSLProcess&);
SSLProcess& operator=(const SSLProcess&);
bool _isServer;
};
#endif // __SSL_PROCESS__