ServidorTFG/session_manager_ssl.cpp

15 lines
352 B
C++
Raw Normal View History

2020-05-08 12:43:46 +02:00
#include "session_manager_ssl.h"
session_manager_ssl::session_manager_ssl(SSL* sfd):session_manager(-1)
{
this->sfd=sfd;
}
int session_manager_ssl::read_data(char* input, int size){
return SSL_read(this->sfd, input, size);
}
int session_manager_ssl::write_data(std::string output){
return SSL_write(this->sfd, output.data(), output.size());
}