Commit 6faa7cb6 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Use UDM api version from conf file

parent 98cd972b
...@@ -136,8 +136,9 @@ void ausf_app::handle_ue_authentications( ...@@ -136,8 +136,9 @@ void ausf_app::handle_ue_authentications(
udm_uri = "http://" + udm_uri = "http://" +
std::string( std::string(
inet_ntoa(*((struct in_addr*) &ausf_cfg.udm_addr.ipv4_addr))) + inet_ntoa(*((struct in_addr*) &ausf_cfg.udm_addr.ipv4_addr))) +
":" + std::to_string(ausf_cfg.udm_addr.port) + "/nudm-ueau/v1/" + ":" + std::to_string(ausf_cfg.udm_addr.port) + "/nudm-ueau/" +
supi + "/security-information/generate-auth-data"; ausf_cfg.udm_addr.api_version + "/" + supi +
"/security-information/generate-auth-data";
Logger::ausf_app().debug("UDM's URI %s", udm_uri.c_str()); Logger::ausf_app().debug("UDM's URI %s", udm_uri.c_str());
// Create AuthInfo to send to UDM // Create AuthInfo to send to UDM
...@@ -317,8 +318,7 @@ void ausf_app::handle_ue_authentications( ...@@ -317,8 +318,7 @@ void ausf_app::handle_ue_authentications(
std::string(inet_ntoa(*((struct in_addr*) &ausf_cfg.sbi.addr4))) + ":" + std::string(inet_ntoa(*((struct in_addr*) &ausf_cfg.sbi.addr4))) + ":" +
std::to_string(ausf_cfg.sbi.port) + "/nausf-auth/v1/ue-authentications/" + std::to_string(ausf_cfg.sbi.port) + "/nausf-auth/v1/ue-authentications/" +
authCtxId_s + "/5g-aka-confirmation"; authCtxId_s + "/5g-aka-confirmation";
ausf_Href.setHref( ausf_Href.setHref(resourceURI);
resourceURI); //"/nausf-auth/v1/ue-authentications/640110987654321/5g-aka-confirmation"
ausf_links["5G_AKA"] = ausf_Href; ausf_links["5G_AKA"] = ausf_Href;
UEAuthCtx.setLinks(ausf_links); UEAuthCtx.setLinks(ausf_links);
...@@ -433,11 +433,12 @@ void ausf_app::handle_ue_authentications_confirmation( ...@@ -433,11 +433,12 @@ void ausf_app::handle_ue_authentications_confirmation(
std::string udm_uri = {}; std::string udm_uri = {};
std::string method = "POST"; std::string method = "POST";
std::string response = {}; std::string response = {};
udm_uri = "http://" + udm_uri =
std::string(inet_ntoa( "http://" +
*((struct in_addr*) &ausf_cfg.udm_addr.ipv4_addr))) + std::string(
":" + std::to_string(ausf_cfg.udm_addr.port) + inet_ntoa(*((struct in_addr*) &ausf_cfg.udm_addr.ipv4_addr))) +
"/nudm-ueau/v1/" + sc->supi_ausf + "/auth-events"; ":" + std::to_string(ausf_cfg.udm_addr.port) + "/nudm-ueau/" +
ausf_cfg.udm_addr.api_version + "/" + sc->supi_ausf + "/auth-events";
Logger::ausf_app().debug("UDM's URI: %s", udm_uri.c_str()); Logger::ausf_app().debug("UDM's URI: %s", udm_uri.c_str());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment