Remove unnecessary initializers

refs #7247
This commit is contained in:
Gunnar Beutner 2014-10-23 19:01:47 +02:00
parent 70ae037324
commit 17003d0157
2 changed files with 3 additions and 3 deletions

View File

@ -183,7 +183,7 @@ int PkiUtility::RequestCertificate(const String& host, const String& port, const
return 1;
}
shared_ptr<SSL_CTX> sslContext = make_shared<SSL_CTX>();
shared_ptr<SSL_CTX> sslContext;
try {
sslContext = MakeSSLContext(certfile, keyfile);
@ -204,7 +204,7 @@ int PkiUtility::RequestCertificate(const String& host, const String& port, const
shared_ptr<X509> peerCert = stream->GetPeerCertificate();
shared_ptr<X509> trustedCert = make_shared<X509>();
shared_ptr<X509> trustedCert;
try {
trustedCert = GetX509Certificate(trustedfile);

View File

@ -42,7 +42,7 @@ REGISTER_STATSFUNCTION(ApiListenerStats, &ApiListener::StatsFunc);
void ApiListener::OnConfigLoaded(void)
{
/* set up SSL context */
shared_ptr<X509> cert = make_shared<X509>();
shared_ptr<X509> cert;
try {
cert = GetX509Certificate(GetCertPath());
} catch (const std::exception&) {