| 220 | } |
| 221 | |
| 222 | SSL* SSLContext::createSSL() { |
| 223 | SSL* ssl = SSL_new(ctx_); |
| 224 | if (ssl == nullptr) { |
| 225 | string errors; |
| 226 | buildErrors(errors); |
| 227 | throw TSSLException("SSL_new: " + errors); |
| 228 | } |
| 229 | return ssl; |
| 230 | } |
| 231 | |
| 232 | // TSSLSocket implementation |
| 233 | TSSLSocket::TSSLSocket(std::shared_ptr<SSLContext> ctx, std::shared_ptr<TConfiguration> config) |
no test coverage detected