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
PBoolean 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

PSSLDiffieHellman::PSSLDiffieHellman (  ) 

Create an empty set of Diffie-Hellman parameters.

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

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:
dhFile  Diffie-Hellman parameters file
fileType  Type of file to read

PSSLDiffieHellman::PSSLDiffieHellman ( const BYTE *  pData,
PINDEX  pSize,
const BYTE *  gData,
PINDEX  gSize 
)

Create a set of Diffie-Hellman parameters.

Parameters:
pData  P data
pSize  Size of P data
gData  G data
gSize  Size of G data

PSSLDiffieHellman::PSSLDiffieHellman ( const PSSLDiffieHellman dh  ) 

Create a copy of the Diffie-Hellman parameters.

PSSLDiffieHellman::~PSSLDiffieHellman (  ) 

Destroy and release storage for Diffie-Hellman parameters.


Member Function Documentation

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

Create a copy of the Diffie-Hellman parameters.

PSSLDiffieHellman::operator dh_st * (  )  const [inline]

Get internal OpenSSL DH structure.

PBoolean 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:
dhFile  Diffie-Hellman parameters file
fileType  Type of file to read


Member Data Documentation

dh_st* PSSLDiffieHellman::dh [protected]


The documentation for this class was generated from the following file:
Generated on Mon Feb 23 01:57:58 2009 for PTLib by  doxygen 1.5.1