您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

ssl_process.h 473 B

123456789101112131415161718192021222324252627282930
  1. #ifndef __SSL_PROCESS__
  2. #define __SSL_PROCESS__
  3. #include <openssl/ssl.h>
  4. #include <openssl/err.h>
  5. class SSLProcess
  6. {
  7. public:
  8. virtual ~SSLProcess();
  9. virtual void init() = 0;
  10. protected:
  11. SSLProcess(bool isServer);
  12. void sslInit();
  13. bool isServer()
  14. { return _isServer; }
  15. SSL_CTX* _ctx;
  16. private:
  17. SSLProcess();
  18. SSLProcess(const SSLProcess&);
  19. SSLProcess& operator=(const SSLProcess&);
  20. bool _isServer;
  21. };
  22. #endif // __SSL_PROCESS__