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 Oct 6, 2023
1 parent ae9c464 commit a0c0eff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/RadiusEndpointUpdater.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ namespace OpenWifi {
CurrentCert += "\n";
}
}

}

inline bool UpdateEndpoints( RESTAPIHandler *Client, [[maybe_unused]] std::string & Error,
Expand Down Expand Up @@ -75,7 +76,9 @@ namespace OpenWifi {
PE.radsecCert = Utils::base64encode((const u_char *)OA.certificate.c_str(),OA.certificate.size());
PE.radsecKey = Utils::base64encode((const u_char *)OA.privateKey.c_str(),OA.privateKey.size());
for(const auto &cert:OA.cacerts) {
PE.radsecCacerts.emplace_back(Utils::base64encode((const u_char *)cert.c_str(),cert.size()));
auto C = Utils::base64encode((const u_char *)cert.c_str(),cert.size());
PE.radsecCacerts.emplace_back(C);
std::cout << C << std::endl;
}
PE.radsec = true;
PE.name = fmt::format("Server {}",i++);
Expand Down

0 comments on commit a0c0eff

Please sign in to comment.