version 1.8, 2002/09/20 00:29:19
|
version 1.9, 2003/03/13 18:41:47
|
|
|
| |
/** Constructor for a SSLContextRep object. | /** Constructor for a SSLContextRep object. |
@param certPath certificate file path | @param certPath certificate file path |
|
@param certKeyPath server certificate and 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 |
|
|
*/ | */ |
SSLContextRep( | SSLContextRep( |
const String& certPath, | const String& certPath, |
|
const String& certKeyPath = String::EMPTY, |
SSLCertificateVerifyFunction* verifyCert = NULL, | SSLCertificateVerifyFunction* verifyCert = NULL, |
const String& randomFile = String::EMPTY); | const String& randomFile = String::EMPTY); |
| |
|
|
private: | private: |
| |
SSL_CTX * _makeSSLContext(); | SSL_CTX * _makeSSLContext(); |
|
void _randomInit(const String& randomFile); |
|
Boolean _verifyPrivateKey(SSL_CTX *ctx, const char *keyFilePath); |
| |
CString _certPath; | CString _certPath; |
|
CString _certKeyPath; |
String _randomFile; | String _randomFile; |
SSL_CTX * _sslContext; | SSL_CTX * _sslContext; |
}; | }; |