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 0dc1be1 commit f077fb7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/RADIUS_helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -1008,10 +1008,12 @@ namespace OpenWifi::RADIUS {
P_.identifier = std::rand() & 0x00ff;
MakeRadiusAuthenticator(P_.authenticator);
unsigned char MessageAuthenticator[16]{0};
AddAttribute(RADIUS::Attributes::PROXY_STATE, 6, (const unsigned char *)"status" );
// AddAttribute(RADIUS::Attributes::PROXY_STATE, 6, (const unsigned char *)"status" );
AddAttribute(RADIUS::Attributes::MESSAGE_AUTHENTICATOR, sizeof(MessageAuthenticator),
MessageAuthenticator);
int PktLen = 1 + 1 + 2 + 16 + 1 + 1 + 16 + 1 + 1 + 6;
// 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 f077fb7

Please sign in to comment.