mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-22 21:24:41 +02:00
parent
3916ef0904
commit
356d11b40d
@ -122,7 +122,7 @@ boost::shared_ptr<X509> PkiUtility::FetchCert(const String& host, const String&
|
|||||||
<< "Cannot connect to host '" << host << "' on port '" << port << "'";
|
<< "Cannot connect to host '" << host << "' on port '" << port << "'";
|
||||||
Log(LogDebug, "pki")
|
Log(LogDebug, "pki")
|
||||||
<< "Cannot connect to host '" << host << "' on port '" << port << "':\n" << DiagnosticInformation(ex);
|
<< "Cannot connect to host '" << host << "' on port '" << port << "':\n" << DiagnosticInformation(ex);
|
||||||
return NULL;
|
return boost::shared_ptr<X509>();
|
||||||
}
|
}
|
||||||
|
|
||||||
boost::shared_ptr<SSL_CTX> sslContext;
|
boost::shared_ptr<SSL_CTX> sslContext;
|
||||||
@ -134,7 +134,7 @@ boost::shared_ptr<X509> PkiUtility::FetchCert(const String& host, const String&
|
|||||||
<< "Cannot make SSL context.";
|
<< "Cannot make SSL context.";
|
||||||
Log(LogDebug, "pki")
|
Log(LogDebug, "pki")
|
||||||
<< "Cannot make SSL context:\n" << DiagnosticInformation(ex);
|
<< "Cannot make SSL context:\n" << DiagnosticInformation(ex);
|
||||||
return NULL;
|
return boost::shared_ptr<X509>();
|
||||||
}
|
}
|
||||||
|
|
||||||
TlsStream::Ptr stream = new TlsStream(client, String(), RoleClient, sslContext);
|
TlsStream::Ptr stream = new TlsStream(client, String(), RoleClient, sslContext);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user