From 1c6022c227551c2905b4022a7b5cd0e1b6eb6874 Mon Sep 17 00:00:00 2001 From: stephb9959 Date: Fri, 15 Sep 2023 10:09:19 -0700 Subject: [PATCH] https://telecominfraproject.atlassian.net/browse/WIFI-7831 Signed-off-by: stephb9959 --- src/RADSEC_server.h | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/RADSEC_server.h b/src/RADSEC_server.h index fb2d5f63..ab43be75 100644 --- a/src/RADSEC_server.h +++ b/src/RADSEC_server.h @@ -60,11 +60,7 @@ namespace OpenWifi { } else if ((Utils::Now() - LastStatus) > RadSecKeepAlive) { RADIUS::RadiusOutputPacket P(Server_.radsecSecret); P.MakeStatusMessage(); - poco_information(Logger_, "Keep-Alive message."); -// std::cout << Server_.radsecSecret << std::endl; -// RADIUS::RadiusPacket PP(P.Data(),P.Len()); -// PP.Log(std::cout); Socket_->sendBytes(P.Data(), P.Len()); LastStatus = Utils::Now(); } @@ -251,36 +247,24 @@ namespace OpenWifi { Poco::Net::SocketAddress Destination(Server_.ip, Server_.port); try { - DBGLINE poco_information(Logger_, "Attempting to connect"); - DBGLINE Socket_->connect(Destination, Poco::Timespan(20, 0)); - DBGLINE Socket_->completeHandshake(); - DBGLINE - DBGLINE if (!Server_.allowSelfSigned) { - DBGLINE Socket_->verifyPeerCertificate(); - DBGLINE } - DBGLINE if (Socket_->havePeerCertificate()) { - DBGLINE Peer_Cert_ = std::make_unique( Socket_->peerCertificate()); - DBGLINE } - DBGLINE Socket_->setBlocking(false); Socket_->setNoDelay(true); Socket_->setKeepAlive(true); Socket_->setReceiveTimeout(Poco::Timespan(1 * 60 * 60, 0)); - DBGLINE Reactor_.addEventHandler( *Socket_, Poco::NObserver( *this, &RADSEC_server::onData));