version 1.22, 2004/06/30 15:09:53
|
version 1.23, 2004/06/30 18:20:14
|
|
|
// Pegasus-defined SSL certificate verification callback | // Pegasus-defined SSL certificate verification callback |
typedef Boolean (SSLCertificateVerifyFunction) (SSLCertificateInfo &certInfo); | typedef Boolean (SSLCertificateVerifyFunction) (SSLCertificateInfo &certInfo); |
| |
// index to the application-specific data in the SSL connection object |
|
static const int SSL_CALLBACK_INDEX = 0; |
|
|
|
/** This class provides information that is used during the SSL verification callback. | /** 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 | 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 | from within the callback and cast the void* back to this object. In this case, we store a pointer |
|
|
{ | { |
public: | public: |
| |
|
// index to the application-specific data in the SSL connection object |
|
static const int SSL_CALLBACK_INDEX; |
|
|
SSLCallbackInfo(SSLCertificateVerifyFunction* verifyCert); | SSLCallbackInfo(SSLCertificateVerifyFunction* verifyCert); |
| |
~SSLCallbackInfo(); | ~SSLCallbackInfo(); |