Skip to content

Commit

Permalink
https://telecominfraproject.atlassian.net/browse/WIFI-7831
Browse files Browse the repository at this point in the history
Signed-off-by: stephb9959 <[email protected]>
  • Loading branch information
stephb9959 committed Sep 15, 2023
1 parent 960640c commit 1c6022c
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/RADSEC_server.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down Expand Up @@ -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<Poco::Crypto::X509Certificate>(
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<RADSEC_server, Poco::Net::ReadableNotification>(
*this, &RADSEC_server::onData));
Expand Down

0 comments on commit 1c6022c

Please sign in to comment.