SSLCallbackInfo Class Reference

#include <SSLContext.h>

List of all members.

Public Member Functions

 SSLCallbackInfo (SSLCertificateVerifyFunction *verifyCert)
 SSLCallbackInfo (SSLCertificateVerifyFunction *verifyCert, X509_STORE *crlStore)
 ~SSLCallbackInfo ()

Static Public Attributes

static const int SSL_CALLBACK_INDEX


Detailed Description

This class provides information that is used during the SSL verification callback. We pass a pointer to this object to the SSL_set_ex_data function. We can then use SSL_get_ex_data from within the callback and cast the void* back to this object. In this case, we store a pointer to the Pegasus-defined callback function set in the SSLContext. We also store a pointer to a certificate object which we construct during the callback. Some of the certificate information is inaccessible outside the callback, so we need to retrieve the data within the function. Each SSL connection object will have the same callback function, but each connection will have its own certificate. Therefore, this class is constructed on a per-connection basis in SSLSocket.


Constructor & Destructor Documentation

SSLCallbackInfo::SSLCallbackInfo ( SSLCertificateVerifyFunction *  verifyCert  ) 

Constructs an SSLCallbackInfo object with a specified certificate verification function.

Parameters:
verifyCert A SSLCertificateVerifyFunction pointer specifying the callback function to use to verify a certificate.

SSLCallbackInfo::SSLCallbackInfo ( SSLCertificateVerifyFunction *  verifyCert,
X509_STORE *  crlStore 
)

Constructs an SSLCallbackInfo object with a specified certificate verification function and CRL store.

Parameters:
verifyCert A SSLCertificateVerifyFunction pointer specifying the callback function to use to verify a certificate.
crlStore An X509_STORE pointer specifying a CRL store to check whether a certificate has been revoked.

SSLCallbackInfo::~SSLCallbackInfo (  ) 

Destructs an SSLCallbackInfo object.


Member Data Documentation

Index to the application-specific data in the SSL connection object.


The documentation for this class was generated from the following file:
  • /scratch/rpmbuild.17644.V17674/pegasus/src/Pegasus/Common/SSLContext.h