blob: f52f5457f0d52704bc9292c51032d38e14aac74c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
// --------------------------------------------------------------------------
//
// File
// Name: TLSContext.h
// Purpose: TLS (SSL) context for connections
// Created: 2003/08/06
//
// --------------------------------------------------------------------------
#ifndef TLSCONTEXT__H
#define TLSCONTEXT__H
#ifndef TLS_CLASS_IMPLEMENTATION_CPP
class SSL_CTX;
#endif
// --------------------------------------------------------------------------
//
// Class
// Name: TLSContext
// Purpose: TLS (SSL) context for connections
// Created: 2003/08/06
//
// --------------------------------------------------------------------------
class TLSContext
{
public:
TLSContext();
~TLSContext();
private:
TLSContext(const TLSContext &);
public:
void Initialise(bool AsServer, const char *CertificatesFile, const char *PrivateKeyFile, const char *TrustedCAsFile);
SSL_CTX *GetRawContext() const;
private:
SSL_CTX *mpContext;
};
#endif // TLSCONTEXT__H
|