SSLTLS::Context Class Referenceabstract

Class defining an SSL context. More...

#include <SSLconfig.h>

Public Member Functions

virtual int Configure (Config *confobj, MSGstruct *msp)=0
 Reconfigure the context.
 
virtual const cipher_suites_tAvailableSuites ()=0
 Return set of available cipher suites.
 
virtual const cipher_suites_tDefaultSuites ()=0
 Return set of default cipher suites.
 
virtual bool HaveTLSIdentity ()=0
 Whether a TLS identity is available.
 
virtual bool IsUsable ()=0
 Whether it is actually usable.
 
virtual std::list< X509 * > ServerCertificates (void)=0
 Return list of server certificates.
 
virtual std::list< X509 * > GetTrustAnchors () const =0
 Return the list of trust anchors.
 
virtual int GetTlsInfo (const ICryptoKeyType keyType, EVP_PKEY **key, std::vector< std::string > &san, std::vector< std::vector< unsigned char > > &cert_chain) const =0
 
virtual size_t GetNbIdentities () const =0
 

Static Public Member Functions

static EVENTSVC_DLL ContextFactory (Config *confobj, MSGstruct *msp)
 Factory method for context, creates concrete object.
 

Protected Member Functions

 Context ()
 Protect constructor to avoid making base objects.
 

Detailed Description

Class defining an SSL context.

Definition at line 123 of file SSLconfig.h.

Constructor & Destructor Documentation

◆ Context()

SSLTLS::Context::Context ( )
inlineprotected

Protect constructor to avoid making base objects.

Definition at line 126 of file SSLconfig.h.

126{}

◆ ~Context()

virtual SSLTLS::Context::~Context ( )
inlinevirtual

Definition at line 132 of file SSLconfig.h.

132{}

Member Function Documentation

◆ Factory()

Context * SSLTLS::Context::Factory ( Config confobj,
MSGstruct *  msp 
)
static

Factory method for context, creates concrete object.

Definition at line 43 of file ssl_context.C.

44 {
45 if ( confobj == 0 )
46 return 0;
47
48 OpenSSLContext *ctx = new OpenSSLContext ();
49
50 if ( ctx->Configure (confobj, msp) == 0 )
51 return ctx;
52
53 delete ctx;
54
55 return 0;
56 }

The documentation for this class was generated from the following files:

All rights reserved © 2002 - 2024 Isode Ltd.