Skip to content

Commit

Permalink
Remove unnecessary initializers
Browse files Browse the repository at this point in the history
refs #7247
  • Loading branch information
gunnarbeutner committed Oct 23, 2014
1 parent 70ae037 commit 17003d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/cli/pkiutility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion lib/remote/apilistener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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&) {
Expand Down

0 comments on commit 17003d0

Please sign in to comment.