mirror of
https://github.com/Icinga/icinga2.git
synced 2026-05-28 04:12:13 -04:00
parent
8b7d59eb34
commit
c54de4b615
1 changed files with 2 additions and 2 deletions
|
|
@ -137,7 +137,7 @@ boost::shared_ptr<X509> PkiUtility::FetchCert(const String& host, const String&
|
|||
return boost::shared_ptr<X509>();
|
||||
}
|
||||
|
||||
TlsStream::Ptr stream = new TlsStream(client, String(), RoleClient, sslContext);
|
||||
TlsStream::Ptr stream = new TlsStream(client, host, RoleClient, sslContext);
|
||||
|
||||
try {
|
||||
stream->Handshake();
|
||||
|
|
@ -201,7 +201,7 @@ int PkiUtility::RequestCertificate(const String& host, const String& port, const
|
|||
return 1;
|
||||
}
|
||||
|
||||
TlsStream::Ptr stream = new TlsStream(client, String(), RoleClient, sslContext);
|
||||
TlsStream::Ptr stream = new TlsStream(client, host, RoleClient, sslContext);
|
||||
|
||||
try {
|
||||
stream->Handshake();
|
||||
|
|
|
|||
Loading…
Reference in a new issue