mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralgw.git
synced 2025-11-02 03:37:57 +00:00
Signed-off-by: stephb9959 <stephane.bourque@gmail.com>
This commit is contained in:
@@ -1109,7 +1109,6 @@ namespace OpenWifi {
|
||||
if (RTTYS_server()->UseInternal()) {
|
||||
std::uint64_t SN = Utils::SerialNumberToInt(SerialNumber_);
|
||||
bool mTLS = AP_WS_Server()->DeviceRequiresSecureRtty(SN);
|
||||
std::cout << __LINE__ << "mTLS: " << mTLS << std::endl;
|
||||
Rtty.Token = Utils::ComputeHash(UserInfo_.webtoken.refresh_token_, Utils::Now())
|
||||
.substr(0, RTTY_DEVICE_TOKEN_LENGTH);
|
||||
if (!RTTYS_server()->CreateEndPoint(Rtty.ConnectionId, Rtty.Token, Requester(),
|
||||
|
||||
@@ -439,7 +439,7 @@ namespace OpenWifi {
|
||||
}
|
||||
|
||||
if (Connection->mTLS_) {
|
||||
auto SS = dynamic_cast<Poco::Net::SecureStreamSocketImpl *>(Connection->DeviceSocket_->impl());
|
||||
auto SS = dynamic_cast<Poco::Net::SecureStreamSocketImpl *>(Socket.impl());
|
||||
auto PeerAddress_ = SS->peerAddress().host();
|
||||
auto CId_ = Utils::FormatIPv6(SS->peerAddress().toString());
|
||||
if (SS->havePeerCertificate()) {
|
||||
|
||||
Reference in New Issue
Block a user