version 1.27, 2004/07/21 17:43:57
|
version 1.28, 2004/08/16 22:45:56
|
|
|
#ifdef PEGASUS_USE_23HTTPMONITOR_CLIENT | #ifdef PEGASUS_USE_23HTTPMONITOR_CLIENT |
_httpConnection = _httpConnector->connect(_connectHost, | _httpConnection = _httpConnector->connect(_connectHost, |
_connectPortNumber, | _connectPortNumber, |
_connectSSLContext, |
_connectSSLContext.get(), |
_responseDecoder); | _responseDecoder); |
#else | #else |
_httpConnection = _httpConnector->connect(_connectHost, | _httpConnection = _httpConnector->connect(_connectHost, |
|
|
_requestEncoder = 0; | _requestEncoder = 0; |
} | } |
| |
if (_connectSSLContext) |
|
{ |
|
delete _connectSSLContext; |
|
_connectSSLContext = 0; |
|
} |
|
|
|
_connected = false; | _connected = false; |
} | } |
} | } |
|
|
_authenticator.setPassword(password); | _authenticator.setPassword(password); |
} | } |
| |
_connectSSLContext = 0; |
_connectSSLContext.reset(0); |
_connectHost = hostName; | _connectHost = hostName; |
_connectPortNumber = portNumber; | _connectPortNumber = portNumber; |
| |
|
|
_authenticator.setPassword(password); | _authenticator.setPassword(password); |
} | } |
| |
_connectSSLContext = new SSLContext(sslContext); |
_connectSSLContext.reset(new SSLContext(sslContext)); |
_connectHost = hostName; | _connectHost = hostName; |
_connectPortNumber = portNumber; | _connectPortNumber = portNumber; |
| |
|
|
} | } |
catch (Exception&) | catch (Exception&) |
{ | { |
delete _connectSSLContext; |
_connectSSLContext.reset(0); |
_connectSSLContext = 0; |
|
throw; | throw; |
} | } |
} | } |
|
|
// | // |
_connectHost.assign(_getLocalHostName()); | _connectHost.assign(_getLocalHostName()); |
| |
_connectSSLContext = 0; |
_connectSSLContext.reset(0); |
| |
_connect(); | _connect(); |
} | } |
|
|
| |
try | try |
{ | { |
_connectSSLContext = |
_connectSSLContext.reset( |
new SSLContext(String::EMPTY, NULL, randFile); |
new SSLContext(String::EMPTY, NULL, randFile)); |
} | } |
catch (SSLException &se) | catch (SSLException &se) |
{ | { |
|
|
} | } |
catch (Exception&) | catch (Exception&) |
{ | { |
delete _connectSSLContext; |
_connectSSLContext.reset(); |
_connectSSLContext = 0; |
|
throw; | throw; |
} | } |
} | } |
|
|
{ | { |
_disconnect(); | _disconnect(); |
_authenticator.clear(); | _authenticator.clear(); |
|
_connectSSLContext.reset(); |
} | } |
| |
| |