<< "Cannot connect to host '" << host << "' on port '" << port << "'";
Log(LogDebug, "pki")
<< "Cannot connect to host '" << host << "' on port '" << port << "':\n" << DiagnosticInformation(ex);
- return NULL;
+ return boost::shared_ptr<X509>();
}
boost::shared_ptr<SSL_CTX> sslContext;
<< "Cannot make SSL context.";
Log(LogDebug, "pki")
<< "Cannot make SSL context:\n" << DiagnosticInformation(ex);
- return NULL;
+ return boost::shared_ptr<X509>();
}
TlsStream::Ptr stream = new TlsStream(client, String(), RoleClient, sslContext);