/home/barant/Development/BMA/server_core/ServerCore/BMATLSServerSocket.h
#ifndef BMATLSServerSocket_h__
#define BMATLSServerSocket_h__
#include "BMASocket.h"
#include "BMATCPServerSocket.h"
#include "BMACommand.h"
#include "BMASession.h"
#include <openssl/ssl.h>
#include <openssl/rand.h>
#include <openssl/err.h>
// Global values used by all TLS functions for this server socket.
class BMATLSServerSocket : public BMATCPServerSocket {
public:
BMATLSServerSocket(BMAEPoll &ePoll, std::string url, short int port, std::string commandName);
~BMATLSServerSocket();
SSL_CTX *ctx;
protected:
BMASession * getSocketAccept() override;
private:
void tlsServerInit();
char *sip_cacert = (char *)"/home/barant/testkeys/certs/pbxca.crt";
char *sip_cert = (char *)"/home/barant/testkeys/certs/pbxserver.crt";
char *sip_key = (char *)"/home/barant/testkeys/certs/pbxserver.key";
};
#endif
BMATLSServerSocket::getSocketAccept
BMASession * getSocketAccept() override
Definition: BMATLSServerSocket.cpp:58
BMATCPServerSocket
Definition: BMATCPServerSocket.h:20
BMATLSServerSocket::BMATLSServerSocket
BMATLSServerSocket(BMAEPoll &ePoll, std::string url, short int port, std::string commandName)
Definition: BMATLSServerSocket.cpp:16
BMATLSServerSocket
Definition: BMATLSServerSocket.h:21
BMAEPoll
Definition: BMAEPoll.h:29
BMATLSServerSocket::~BMATLSServerSocket
~BMATLSServerSocket()
Definition: BMATLSServerSocket.cpp:39
BMASession
Definition: BMASession.h:18