version 1.10, 2003/05/02 17:13:27
|
version 1.11, 2003/06/27 00:16:57
|
|
|
public: | public: |
| |
/** Constructor for a SSLContextRep object. | /** Constructor for a SSLContextRep object. |
@param certPath certificate file path |
@param trustPath trust store file path |
@param certKeyPath server certificate and key file path |
@param certPath server certificate file path |
|
@param keyPath server key file path |
@param verifyCert function pointer to a certificate verification | @param verifyCert function pointer to a certificate verification |
call back function. | call back function. |
@param randomFile file path of a random file that is used as a seed | @param randomFile file path of a random file that is used as a seed |
|
|
@exception SSLException exception indicating failure to create a context. | @exception SSLException exception indicating failure to create a context. |
*/ | */ |
SSLContextRep( | SSLContextRep( |
const String& certPath, |
const String& trustPath, |
const String& certKeyPath = String::EMPTY, |
const String& certPath = String::EMPTY, |
|
const String& keyPath = String::EMPTY, |
SSLCertificateVerifyFunction* verifyCert = NULL, | SSLCertificateVerifyFunction* verifyCert = NULL, |
const String& randomFile = String::EMPTY); | const String& randomFile = String::EMPTY); |
| |
|
|
void _randomInit(const String& randomFile); | void _randomInit(const String& randomFile); |
Boolean _verifyPrivateKey(SSL_CTX *ctx, const char *keyFilePath); | Boolean _verifyPrivateKey(SSL_CTX *ctx, const char *keyFilePath); |
| |
|
CString _trustPath; |
CString _certPath; | CString _certPath; |
CString _certKeyPath; |
CString _keyPath; |
String _randomFile; | String _randomFile; |
SSL_CTX * _sslContext; | SSL_CTX * _sslContext; |
| |