#ifndef SESSION_MANAGER_SSL_H #define SESSION_MANAGER_SSL_H #include #include "session_manager.h" class session_manager_ssl : public session_manager { public: /** * @brief session_manager_ssl * Object that gide a secure session * @param fd File desccriptor used in the ssl conexion */ session_manager_ssl(SSL* fd); private: /** * @brief read_data * Recive data from a secure socket * @param input Buffer to deposite the info * @param size Max size of a info readed * @return Number of bytes readed */ int read_data(char* input, int size); /** * @brief write_data * Write data using a secure socket * @param output * String to have te info to send * @return Number of bytes writed */ int write_data(std::string output); SSL* sfd; }; #endif // SESSION_MANAGER_SSL_H