70 void (*callback)(
int,
int,
void *) = NULL,
115 operator evp_pkey_st *()
const {
return key; }
121 void (*callback)(
int,
int,
void *) = NULL,
185 const BYTE * certData,
219 operator x509_st *()
const {
return certificate; }
318 operator dh_st *()
const {
return dh; }
357 const void * sessionId = NULL,
362 const void * sessionId = NULL,
372 operator ssl_ctx_st *()
const {
return context; }
411 void Construct(
Method method,
const void * sessionId, PINDEX idSize);
438 virtual PBoolean Read(
void * buf, PINDEX len);
439 virtual PBoolean Write(
const void * buf, PINDEX len);
509 virtual PBoolean RawSSLRead(
void * buf, PINDEX & len);
529 #endif // PTLIB_PSSL_H PSSLPrivateKey & operator=(const PSSLPrivateKey &privKay)
Create a copy of the private key.
VerifyMode
Definition: pssl.h:497
x509_st * certificate
Definition: pssl.h:265
#define PCLASSINFO(cls, par)
Declare all the standard PTLib class information.
Definition: object.h:1049
Method
Definition: pssl.h:342
PBoolean Create(unsigned modulus, void(*callback)(int, int, void *)=NULL, void *cb_arg=NULL)
Create a new private key.
Certificate for SSL.
Definition: pssl.h:164
PBoolean autoDeleteContext
Definition: pssl.h:525
This class describes a full description for a file on the particular platform.
Definition: filepath.h:65
~PSSLPrivateKey()
Destroy and release storage for private key.
This is a channel that operates indirectly through another channel(s).
Definition: indchan.h:49
ssl_st * ssl
Definition: pssl.h:526
PBYTEArray GetData() const
Get the certificate as binary ASN1 DER encoded data.
ShutdownValue
Definition: channel.h:433
Private key for SSL.
Definition: pssl.h:58
PBoolean Save(const PFilePath &keyFile, PBoolean append=false, PSSLFileTypes fileType=PSSLFileTypeDEFAULT)
Save private key to file.
BOOL PBoolean
Definition: object.h:102
Class to represent a directory in the operating system file system.
Definition: pdirect.h:182
dh_st * dh
Definition: pssl.h:331
Array of unsigned characters.
Definition: array.h:670
PBoolean Load(const PFilePath &keyFile, PSSLFileTypes fileType=PSSLFileTypeDEFAULT)
Load private key from file.
Abstract class defining I/O channel semantics.
Definition: channel.h:107
The character string class.
Definition: pstring.h:108
Context for SSL channels.
Definition: pssl.h:340
evp_pkey_st * key
Definition: pssl.h:156
This class will start a secure SSL based channel.
Definition: pssl.h:418
PString AsString() const
Get the certificate as ASN1 DER base64 encoded data.
ErrorGroup
Error groups.
Definition: channel.h:565
virtual PBoolean Shutdown(ShutdownValue)
Close one or both of the data streams associated with a channel.
Definition: pssl.h:441
PSSLPrivateKey()
Create an empty private key.
Diffie-Hellman parameters for SSL.
Definition: pssl.h:273
PSSLContext * context
Definition: pssl.h:524
PSSLContext * GetContext() const
Definition: pssl.h:507
Ultimate parent class for all objects in the class library.
Definition: object.h:1118
ssl_ctx_st * context
Definition: pssl.h:412
PSSLFileTypes
Definition: pssl.h:47