mirror of
https://github.com/Icinga/icinga2.git
synced 2026-05-27 11:52:30 -04:00
fix: call cert functions directly on existing tlsConn
This commit is contained in:
parent
b0df597e36
commit
e7cabffe49
1 changed files with 2 additions and 3 deletions
|
|
@ -38,9 +38,8 @@ Value RequestCertificateHandler(const MessageOrigin::Ptr& origin, const Dictiona
|
|||
|
||||
/* Use the presented client certificate if not provided. */
|
||||
if (certText.IsEmpty()) {
|
||||
auto stream (origin->FromClient->GetStream());
|
||||
cert = stream->next_layer().GetPeerCertificate();
|
||||
chain = stream->next_layer().GetPeerCertificateChain();
|
||||
cert = tlsConn.GetPeerCertificate();
|
||||
chain = tlsConn.GetPeerCertificateChain();
|
||||
} else {
|
||||
cert = StringToCertificate(certText);
|
||||
chain = nullptr;
|
||||
|
|
|
|||
Loading…
Reference in a new issue