| 129 | |
| 130 | |
| 131 | Context::Ptr SSLManager::defaultClientContext() |
| 132 | { |
| 133 | Poco::FastMutex::ScopedLock lock(_mutex); |
| 134 | |
| 135 | if (!_ptrDefaultClientContext) |
| 136 | { |
| 137 | try |
| 138 | { |
| 139 | initDefaultContext(false); |
| 140 | } |
| 141 | catch (Poco::IllegalStateException&) |
| 142 | { |
| 143 | _ptrClientCertificateHandler = new RejectCertificateHandler(false); |
| 144 | _ptrDefaultClientContext = new Context(Context::CLIENT_USE, "", Context::VERIFY_RELAXED, 9, true); |
| 145 | _ptrDefaultClientContext->disableProtocols(Context::PROTO_SSLV2 | Context::PROTO_SSLV3); |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | return _ptrDefaultClientContext; |
| 150 | } |
| 151 | |
| 152 | |
| 153 | SSLManager::PrivateKeyPassphraseHandlerPtr SSLManager::serverPassphraseHandler() |
no test coverage detected