PWLib  1.10.10
Public Member Functions | Protected Attributes
PSSLDiffieHellman Class Reference

#include <pssl.h>

Inheritance diagram for PSSLDiffieHellman:
PObject

List of all members.

Public Member Functions

 PSSLDiffieHellman ()
 PSSLDiffieHellman (const PFilePath &dhFile, PSSLFileTypes fileType=PSSLFileTypeDEFAULT)
 PSSLDiffieHellman (const BYTE *pData, PINDEX pSize, const BYTE *gData, PINDEX gSize)
 PSSLDiffieHellman (const PSSLDiffieHellman &dh)
PSSLDiffieHellmanoperator= (const PSSLDiffieHellman &dh)
 ~PSSLDiffieHellman ()
 operator dh_st * () const
BOOL Load (const PFilePath &dhFile, PSSLFileTypes fileType=PSSLFileTypeDEFAULT)

Protected Attributes

dh_st * dh

Detailed Description

Diffie-Hellman parameters for SSL. This class embodies a set of Diffie Helman parameters as used by PSSLContext and PSSLChannel classes.


Constructor & Destructor Documentation

Create an empty set of Diffie-Hellman parameters.

Create a new set of Diffie-Hellman parameters given the file. The type of the file 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.

Parameters:
dhFileDiffie-Hellman parameters file
fileTypeType of file to read
PSSLDiffieHellman::PSSLDiffieHellman ( const BYTE *  pData,
PINDEX  pSize,
const BYTE *  gData,
PINDEX  gSize 
)

Create a set of Diffie-Hellman parameters.

Parameters:
pDataP data
pSizeSize of P data
gDataG data
gSizeSize of G data

Create a copy of the Diffie-Hellman parameters.

Destroy and release storage for Diffie-Hellman parameters.


Member Function Documentation

BOOL PSSLDiffieHellman::Load ( const PFilePath dhFile,
PSSLFileTypes  fileType = PSSLFileTypeDEFAULT 
)

Load Diffie-Hellman parameters from file. The type of the file 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.

Parameters:
dhFileDiffie-Hellman parameters file
fileTypeType of file to read
PSSLDiffieHellman::operator dh_st * ( ) const [inline]

Get internal OpenSSL DH structure.

References dh.

PSSLDiffieHellman& PSSLDiffieHellman::operator= ( const PSSLDiffieHellman dh)

Create a copy of the Diffie-Hellman parameters.


Member Data Documentation

dh_st* PSSLDiffieHellman::dh [protected]

Referenced by operator dh_st *().


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