Commit 85f6af11 authored by HFJ's avatar HFJ

add resynchronizationInfo request

parent 2a07047a
......@@ -9,12 +9,12 @@ include(ExternalProject)
set(EXTERNAL_INSTALL_LOCATION ${CMAKE_CURRENT_SOURCE_DIR}/external)
ExternalProject_Add(PISTACHE
#GIT_REPOSITORY https://github.com/oktal/pistache.git
GIT_REPOSITORY https://github.com/oktal/pistache.git
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${EXTERNAL_INSTALL_LOCATION}
)
ExternalProject_Add(NLOHMANN
#GIT_REPOSITORY https://github.com/nlohmann/json.git
GIT_REPOSITORY https://github.com/nlohmann/json.git
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${EXTERNAL_INSTALL_LOCATION}
)
......@@ -93,24 +93,3 @@ file(GLOB SRCS
add_executable(${PROJECT_NAME} ${SRCS} )
add_dependencies(${PROJECT_NAME} PISTACHE NLOHMANN)
target_link_libraries(${PROJECT_NAME} LOG OPTIONS pistache pthread gmp config++ ${NETTLE_LIBRARIES} curl)
################################### not used##################################
#include_directories(utils)
#include_directories(utils/bstr)
# ${CMAKE_CURRENT_SOURCE_DIR}/utils/*.c
# ${CMAKE_CURRENT_SOURCE_DIR}/utils/*.cpp
# ${CMAKE_CURRENT_SOURCE_DIR}/utils/bstr/*.c
####### for contexts ###########
#include_directories(contexts)
#include_directories(utils)
#include_directories(utils/bstr)
#include_directories(contexts)
#include_directories(nas/ies)
#include_directories(nas/common)
#include_directories(nas/msgs)
#include_directories(nas/utils)
#add_library (CONTEXTS STATIC
# ${CMAKE_CURRENT_SOURCE_DIR}/contexts/nas_context.cpp
#)
################################
\ No newline at end of file
......@@ -243,6 +243,19 @@ void DefaultApiImpl::ue_authentications_post(
AuthInfo["servingNetworkName"] = snn;
AuthInfo["ausfInstanceId"] = "400346f4-087e-40b1-a4cd-00566953999d"; //fixed, may need to change
if(authenticationInfo.resynchronizationInfoIsSet()) //set ResynchronizationInfo
{
ResynchronizationInfo resynInfo = authenticationInfo.getResynchronizationInfo();
AuthInfo["resynchronizationInfo"]["rand"] = resynInfo.getRand();
AuthInfo["resynchronizationInfo"]["auts"] = resynInfo.getAuts();
Logger::ausf_server().info("received authInfo from amf with ResynchronizationInfo");
}
else
{
Logger::ausf_server().info("received normal authInfo from amf");
}
Curl::curl_http_client(udmUri, Method, AuthInfo.dump() , Response);
Logger::ausf_server().error("response: %s",Response.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