#include <pssl.h>
Public Member Functions | |
PSSLContext (const void *sessionId=NULL, PINDEX idSize=0) | |
~PSSLContext () | |
operator ssl_ctx_st * () const | |
BOOL | SetCAPath (const PDirectory &caPath) |
BOOL | SetCAFile (const PFilePath &caFile) |
BOOL | UseCertificate (const PSSLCertificate &certificate) |
BOOL | UsePrivateKey (const PSSLPrivateKey &key) |
BOOL | UseDiffieHellman (const PSSLDiffieHellman &dh) |
BOOL | SetCipherList (const PString &ciphers) |
Protected Attributes | |
ssl_ctx_st * | context |
|
Create a new context for SSL channels. An optional session ID may be provided in the context. This is used to identify sessions across multiple channels in this context. The session ID is a completely arbitrary block of data. If sessionId is non NULL and idSize is zero, then sessionId is assumed to be a pointer to a C string.
|
|
Clean up the SSL context. |
|
Get the internal SSL context structure. |
|
Set the CA certificate file.
|
|
Set the path to locate CA certificates.
|
|
Set the available ciphers to those listed.
|
|
Use the certificate specified. |
|
Use the Diffie-Hellman parameters specified. |
|
Use the private key specified. |
|
|