Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
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-AMF
Commits
5f499912
Commit
5f499912
authored
Jul 19, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code cleanup
parent
c9867719
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
86 deletions
+55
-86
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+5
-5
src/amf-app/amf_n11.cpp
src/amf-app/amf_n11.cpp
+49
-80
src/amf-app/amf_n11.hpp
src/amf-app/amf_n11.hpp
+1
-1
No files found.
src/amf-app/amf_n1.cpp
View file @
5f499912
...
@@ -1368,9 +1368,9 @@ bool amf_n1::_5g_aka_confirmation_from_ausf(
...
@@ -1368,9 +1368,9 @@ bool amf_n1::_5g_aka_confirmation_from_ausf(
Logger
::
amf_n1
().
debug
(
"_5g_aka_confirmation_from_ausf"
);
Logger
::
amf_n1
().
debug
(
"_5g_aka_confirmation_from_ausf"
);
std
::
string
remoteUri
=
nc
.
get
()
->
Href
;
std
::
string
remoteUri
=
nc
.
get
()
->
Href
;
std
::
string
msgBody
;
std
::
string
msgBody
=
{}
;
std
::
string
Response
;
std
::
string
response
=
{}
;
std
::
string
resStar_string
;
std
::
string
resStar_string
=
{}
;
std
::
map
<
std
::
string
,
std
::
string
>::
iterator
iter
;
std
::
map
<
std
::
string
,
std
::
string
>::
iterator
iter
;
iter
=
rand_record
.
find
(
nc
.
get
()
->
imsi
);
iter
=
rand_record
.
find
(
nc
.
get
()
->
imsi
);
...
@@ -1396,12 +1396,12 @@ bool amf_n1::_5g_aka_confirmation_from_ausf(
...
@@ -1396,12 +1396,12 @@ bool amf_n1::_5g_aka_confirmation_from_ausf(
msgBody
=
confirmationdata_j
.
dump
();
msgBody
=
confirmationdata_j
.
dump
();
// TODO: Should be updated
// TODO: Should be updated
amf_n11_inst
->
curl_http_client
(
remoteUri
,
"PUT"
,
msgBody
,
R
esponse
);
amf_n11_inst
->
curl_http_client
(
remoteUri
,
"PUT"
,
msgBody
,
r
esponse
);
free_wrapper
((
void
**
)
&
resStar_s
);
free_wrapper
((
void
**
)
&
resStar_s
);
try
{
try
{
ConfirmationDataResponse
confirmationdataresponse
;
ConfirmationDataResponse
confirmationdataresponse
;
nlohmann
::
json
::
parse
(
R
esponse
.
c_str
()).
get_to
(
confirmationdataresponse
);
nlohmann
::
json
::
parse
(
r
esponse
.
c_str
()).
get_to
(
confirmationdataresponse
);
unsigned
char
*
kseaf_hex
=
unsigned
char
*
kseaf_hex
=
format_string_as_hex
(
confirmationdataresponse
.
getKseaf
());
format_string_as_hex
(
confirmationdataresponse
.
getKseaf
());
memcpy
(
nc
.
get
()
->
_5g_av
[
0
].
kseaf
,
kseaf_hex
,
32
);
memcpy
(
nc
.
get
()
->
_5g_av
[
0
].
kseaf
,
kseaf_hex
,
32
);
...
...
src/amf-app/amf_n11.cpp
View file @
5f499912
This diff is collapsed.
Click to expand it.
src/amf-app/amf_n11.hpp
View file @
5f499912
...
@@ -71,7 +71,7 @@ class amf_n11 {
...
@@ -71,7 +71,7 @@ class amf_n11 {
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
&
R
esponse
);
std
::
string
&
r
esponse
);
bool
discover_smf
(
bool
discover_smf
(
std
::
string
&
smf_addr
,
std
::
string
&
smf_api_version
,
std
::
string
&
smf_addr
,
std
::
string
&
smf_api_version
,
...
...
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