43 lines
656 B
C++
43 lines
656 B
C++
#ifndef __TLSServer_h__
|
|
#define __TLSServer_h__
|
|
|
|
#include "pthreads.h"
|
|
|
|
namespace core {
|
|
|
|
///
|
|
/// Use the TLSServer object to initialize an SSL/TLS context for the server.
|
|
///
|
|
|
|
class TLSServer {
|
|
|
|
public:
|
|
|
|
///
|
|
/// The constructor.
|
|
///
|
|
|
|
TLSServer();
|
|
|
|
///
|
|
/// The destructor for this object.
|
|
///
|
|
|
|
~TLSServer();
|
|
|
|
SSL_CTX *ctx;
|
|
|
|
private:
|
|
|
|
char *sip_cacert = (char *)"../testkeys/certs/pbxca.crt";
|
|
char *sip_cert = (char *)"../testkeys/certs/pbxserver.crt";
|
|
char *sip_key = (char *)"../testkeys/certs/pbxserver.key";
|
|
|
|
pthread_mutex_t *lockarray;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|