#include <pssl.h>
Inheritance diagram for PSSLPrivateKey:
Public Member Functions | |
PSSLPrivateKey () | |
PSSLPrivateKey (unsigned modulus, void(*callback)(int, int, void *)=NULL, void *cb_arg=NULL) | |
PSSLPrivateKey (const PFilePath &keyFile, PSSLFileTypes fileType=PSSLFileTypeDEFAULT) | |
PSSLPrivateKey (const BYTE *keyData, PINDEX keySize) | |
PSSLPrivateKey (const PBYTEArray &keyData) | |
PSSLPrivateKey (const PSSLPrivateKey &privKey) | |
PSSLPrivateKey & | operator= (const PSSLPrivateKey &privKay) |
~PSSLPrivateKey () | |
operator evp_pkey_st * () const | |
BOOL | Create (unsigned modulus, void(*callback)(int, int, void *)=NULL, void *cb_arg=NULL) |
PBYTEArray | GetData () const |
PString | AsString () const |
BOOL | Load (const PFilePath &keyFile, PSSLFileTypes fileType=PSSLFileTypeDEFAULT) |
BOOL | Save (const PFilePath &keyFile, BOOL append=FALSE, PSSLFileTypes fileType=PSSLFileTypeDEFAULT) |
Protected Attributes | |
evp_pkey_st * | key |
|
Create an empty private key. |
|
Create a new RSA private key.
|
|
Create a new private key given the file. The type of the private key can be specified explicitly, or if PSSLFileTypeDEFAULT it will be determined from the file extension, ".pem" is a text file, anything else eg ".der" is a binary ASN1 file.
|
|
Create private key from the binary ASN1 DER encoded data specified.
|
|
Create private key from the binary ASN1 DER encoded data specified.
|
|
Create a copy of the private key. |
|
Destroy and release storage for private key. |
|
Get the certificate as ASN1 DER base64 encoded data. |
|
Create a new private key.
|
|
Get the certificate as binary ASN1 DER encoded data. |
|
Load private key from file. The type of the private key can be specified explicitly, or if PSSLFileTypeDEFAULT it will be determined from the file extension, ".pem" is a text file, anything else eg ".der" is a binary ASN1 file.
|
|
Get internal OpenSSL private key structure. |
|
Create a copy of the private key. |
|
Save private key to file. The type of the private key can be specified explicitly, or if PSSLFileTypeDEFAULT it will be determined from the file extension, ".pem" is a text file, anything else eg ".der" is a binary ASN1 file.
|
|
|