source: box/trunk/lib/server/TLSContext.h @ 217

Revision 217, 960 bytes checked in by martin, 6 years ago (diff)

Set svn:eol-style as appropriate for all files

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