PSSLContext Class Reference
#include <pssl.h>
List of all members.
Detailed Description
Context for SSL channels. This class embodies a common environment for all connections made via SSL using the PSSLChannel class. It includes such things as the version of SSL and certificates, CA's etc.
Member Enumeration Documentation
Constructor & Destructor Documentation
PSSLContext::PSSLContext |
( |
const void * |
sessionId = NULL , |
|
|
PINDEX |
idSize = 0 | |
|
) |
| | |
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. The default SSL method is SSLv23
- Parameters:
-
| sessionId | Pointer to session ID |
| idSize | Size of session ID |
PSSLContext::PSSLContext |
( |
Method |
method, |
|
|
const void * |
sessionId = NULL , |
|
|
PINDEX |
idSize = 0 | |
|
) |
| | |
- Parameters:
-
| method | SSL connection method |
| sessionId | Pointer to session ID |
| idSize | Size of session ID |
PSSLContext::~PSSLContext |
( |
|
) |
|
Clean up the SSL context.
Member Function Documentation
void PSSLContext::Construct |
( |
Method |
method, |
|
|
const void * |
sessionId, |
|
|
PINDEX |
idSize | |
|
) |
| | [protected] |
PSSLContext::operator ssl_ctx_st * |
( |
|
) |
const [inline] |
Get the internal SSL context structure.
References context.
Set the CA certificate file.
- Parameters:
-
| caFile | CA certificate file |
Set the path to locate CA certificates.
- Parameters:
-
| caPath | Directory for CA certificates |
Set the available ciphers to those listed.
- Parameters:
-
| ciphers | List of cipher names. |
Use the certificate specified.
Use the Diffie-Hellman parameters specified.
Use the private key specified.
Member Data Documentation
The documentation for this class was generated from the following file: