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
faaf20f5
Commit
faaf20f5
authored
May 25, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use Client instance instead of static function
parent
a4ffe97d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
src/ausf_app/ausf_app.cpp
src/ausf_app/ausf_app.cpp
+9
-3
src/ausf_app/ausf_client.hpp
src/ausf_app/ausf_client.hpp
+1
-1
No files found.
src/ausf_app/ausf_app.cpp
View file @
faaf20f5
...
@@ -65,7 +65,13 @@ ausf_app::ausf_app(const std::string& config_file)
...
@@ -65,7 +65,13 @@ ausf_app::ausf_app(const std::string& config_file)
supi2security_context
(),
supi2security_context
(),
imsi2security_context
()
{
imsi2security_context
()
{
Logger
::
ausf_app
().
startup
(
"Starting..."
);
Logger
::
ausf_app
().
startup
(
"Starting..."
);
// TODO: SBI instance
try
{
ausf_client_inst
=
new
ausf_client
();
}
catch
(
std
::
exception
&
e
)
{
Logger
::
ausf_app
().
error
(
"Cannot create AUSF APP: %s"
,
e
.
what
());
throw
;
}
// TODO: Register to NRF
Logger
::
ausf_app
().
startup
(
"Started"
);
Logger
::
ausf_app
().
startup
(
"Started"
);
}
}
...
@@ -163,7 +169,7 @@ void ausf_app::handle_ue_authentications(
...
@@ -163,7 +169,7 @@ void ausf_app::handle_ue_authentications(
}
}
// Send request to UDM
// Send request to UDM
ausf_client
::
curl_http_client
(
udmUri
,
Method
,
AuthInfo
.
dump
(),
Response
);
ausf_client
_inst
->
curl_http_client
(
udmUri
,
Method
,
AuthInfo
.
dump
(),
Response
);
Logger
::
ausf_server
().
error
(
"Response from UDM: %s"
,
Response
.
c_str
());
Logger
::
ausf_server
().
error
(
"Response from UDM: %s"
,
Response
.
c_str
());
...
@@ -454,7 +460,7 @@ void ausf_app::handle_ue_authentications_confirmation(
...
@@ -454,7 +460,7 @@ void ausf_app::handle_ue_authentications_confirmation(
Logger
::
ausf_server
().
debug
(
Logger
::
ausf_server
().
debug
(
"confirmResultInfo: %s"
,
confirmResultInfo
.
dump
().
c_str
());
"confirmResultInfo: %s"
,
confirmResultInfo
.
dump
().
c_str
());
ausf_client
::
curl_http_client
(
ausf_client
_inst
->
curl_http_client
(
udmUri
,
Method
,
confirmResultInfo
.
dump
(),
Response
);
udmUri
,
Method
,
confirmResultInfo
.
dump
(),
Response
);
}
}
}
}
...
...
src/ausf_app/ausf_client.hpp
View file @
faaf20f5
...
@@ -49,7 +49,7 @@ class ausf_client {
...
@@ -49,7 +49,7 @@ class ausf_client {
ausf_client
(
ausf_client
const
&
)
=
delete
;
ausf_client
(
ausf_client
const
&
)
=
delete
;
static
void
curl_http_client
(
void
curl_http_client
(
std
::
string
remoteUri
,
std
::
string
Method
,
std
::
string
msgBody
,
std
::
string
remoteUri
,
std
::
string
Method
,
std
::
string
msgBody
,
std
::
string
&
Response
);
std
::
string
&
Response
);
};
};
...
...
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