Skip to content

Commit

Permalink
https://telecominfraproject.atlassian.net/browse/WIFI-12692
Browse files Browse the repository at this point in the history
Signed-off-by: stephb9959 <[email protected]>
  • Loading branch information
stephb9959 committed Oct 20, 2023
1 parent 8a69089 commit f5095b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build
Original file line number Diff line number Diff line change
@@ -1 +1 @@
43
44
5 changes: 2 additions & 3 deletions src/RADIUS_helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -434,11 +434,11 @@ namespace OpenWifi::RADIUS {
for (const auto &attribute : Attrs_) {
if (attribute.type == RADIUS::Attributes::PROXY_STATE) {
std::string Attr33;
// format is serial:IP:port:interface
// format is statis:server name
Attr33.assign((const char *)(const char *)&P_.attributes[attribute.pos],
attribute.len);
auto Parts = Poco::StringTokenizer(Attr33, ":");
if(Parts.count() == 2) {
if(Parts.count() == 2 && Parts[0] == "status") {
ReplySource = Parts[1];
return true;
}
Expand Down Expand Up @@ -1017,7 +1017,6 @@ namespace OpenWifi::RADIUS {
MessageAuthenticator);
// int PktLen = 1 + 1 + 2 + 16 + 1 + 1 + 16 ;
int PktLen = 1 + 1 + 2 + 16 + AttributesLen_;
std::cout << "Atributes len: " << AttributesLen_ << std::endl;
P_.rawlen = htons(PktLen);

Poco::HMACEngine<Poco::MD5Engine> H(Secret_);
Expand Down

0 comments on commit f5095b9

Please sign in to comment.