Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AUSF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-AUSF
Commits
36cfa8c5
Commit
36cfa8c5
authored
May 21, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use variable in Ausf app to store av
parent
406b872a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
19 deletions
+12
-19
src/api_server/impl/DefaultApiImpl.cpp
src/api_server/impl/DefaultApiImpl.cpp
+1
-1
src/ausf_app/ausf_app.cpp
src/ausf_app/ausf_app.cpp
+10
-10
src/ausf_app/ausf_client.cpp
src/ausf_app/ausf_client.cpp
+1
-0
src/ausf_app/ausf_config.cpp
src/ausf_app/ausf_config.cpp
+0
-8
No files found.
src/api_server/impl/DefaultApiImpl.cpp
View file @
36cfa8c5
...
...
@@ -132,7 +132,7 @@ void DefaultApiImpl::ue_authentications_post(
authenticationInfo
,
UEAuthCtx_json
,
location
,
http_response_code
);
// nlohmann::json UEAuthCtx_json;
to_json
(
UEAuthCtx_json
,
ue_auth_ctx
);
//
to_json(UEAuthCtx_json, ue_auth_ctx);
Logger
::
ausf_server
().
debug
(
"auth response:
\n
%s"
,
UEAuthCtx_json
.
dump
().
c_str
());
...
...
src/ausf_app/ausf_app.cpp
View file @
36cfa8c5
...
...
@@ -64,26 +64,21 @@ extern ausf_app* ausf_app_inst;
ausf_client
*
ausf_client_inst
=
nullptr
;
using
namespace
config
;
extern
ausf_config
ausf_cfg
;
/*
AUSF_AV_s ausf_av_s = {};
// stored temporarily
uint8_t XRES_STAR[16]; // store xres*
std::string SUPI_AUSF; // store supi
std::string AUTH_TYPE; // store authType
std::string SERVING_NN; // store serving network name
std::string KAUSF_TMP; // store Kausf(string)
*/
//------------------------------------------------------------------------------
ausf_app
::
ausf_app
(
const
std
::
string
&
config_file
)
{
Logger
::
ausf_app
().
startup
(
"Starting..."
);
ausf_av_s
=
{};
uint8_t
XRES_STAR
[
16
]
=
{};
Logger
::
ausf_app
().
startup
(
"Started"
);
}
//------------------------------------------------------------------------------
ausf_app
::~
ausf_app
()
{
Logger
::
ausf_app
().
debug
(
"Delete AUSF_APP instance..."
);
}
//------------------------------------------------------------------------------
void
ausf_app
::
handle_ue_authentications
(
const
AuthenticationInfo
&
authenticationInfo
,
nlohmann
::
json
&
json_data
,
std
::
string
&
location
,
uint16_t
&
http_response_code
)
{
...
...
@@ -287,6 +282,7 @@ void ausf_app::handle_ue_authentications(
Logger
::
ausf_server
().
debug
(
"auth response:
\n
%s"
,
json_data
.
dump
().
c_str
());
}
//------------------------------------------------------------------------------
void
ausf_app
::
handle_ue_authentications_confirmation
(
const
std
::
string
&
authCtxId
,
const
ConfirmationData
&
confirmationData
,
nlohmann
::
json
&
json_data
,
uint16_t
&
http_response_code
)
{
...
...
@@ -416,4 +412,8 @@ void ausf_app::handle_ue_authentications_confirmation(
udmUri
,
Method
,
confirmResultInfo
.
dump
(),
Response
);
}
}
// nlohmann::json confirmResponse_json;
to_json
(
json_data
,
confirmResponse
);
http_response_code
=
200
;
// TODO
}
src/ausf_app/ausf_client.cpp
View file @
36cfa8c5
...
...
@@ -64,6 +64,7 @@ ausf_client::~ausf_client() {
Logger
::
ausf_app
().
debug
(
"Delete AUSF Client instance..."
);
}
//------------------------------------------------------------------------------
void
ausf_client
::
curl_http_client
(
std
::
string
remoteUri
,
std
::
string
Method
,
std
::
string
msgBody
,
std
::
string
&
Response
)
{
...
...
src/ausf_app/ausf_config.cpp
View file @
36cfa8c5
...
...
@@ -49,15 +49,7 @@
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/split.hpp>
extern
"C"
{
//#include <arpa/inet.h>
//#include <stdbool.h>
//#include <stdlib.h>
//#include <string.h>
//#include <sys/types.h>
//#include <unistd.h>
#include "common_defs.h"
}
using
namespace
libconfig
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment