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
b598727b
Commit
b598727b
authored
Apr 26, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ausf' into quectel
parents
12252056
245576c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
src/amf-app/amf_n11.cpp
src/amf-app/amf_n11.cpp
+6
-3
No files found.
src/amf-app/amf_n11.cpp
View file @
b598727b
...
@@ -837,7 +837,7 @@ bool amf_n11::send_ue_authentication_request(
...
@@ -837,7 +837,7 @@ bool amf_n11::send_ue_authentication_request(
std
::
string
(
std
::
string
(
inet_ntoa
(
*
((
struct
in_addr
*
)
&
amf_cfg
.
ausf_addr
.
ipv4_addr
)))
+
inet_ntoa
(
*
((
struct
in_addr
*
)
&
amf_cfg
.
ausf_addr
.
ipv4_addr
)))
+
":"
+
std
::
to_string
(
amf_cfg
.
ausf_addr
.
port
)
+
"/nausf-auth/"
+
":"
+
std
::
to_string
(
amf_cfg
.
ausf_addr
.
port
)
+
"/nausf-auth/"
+
amf_cfg
.
ausf_addr
.
api_version
+
"ue-authentications"
;
amf_cfg
.
ausf_addr
.
api_version
+
"
/
ue-authentications"
;
Logger
::
amf_n11
().
debug
(
Logger
::
amf_n11
().
debug
(
"Send UE Authentication Request to AUSF, URL %s"
,
url
.
c_str
());
"Send UE Authentication Request to AUSF, URL %s"
,
url
.
c_str
());
...
@@ -886,10 +886,13 @@ bool amf_n11::send_ue_authentication_request(
...
@@ -886,10 +886,13 @@ bool amf_n11::send_ue_authentication_request(
if
((
httpCode
==
200
)
or
if
((
httpCode
==
200
)
or
(
httpCode
==
201
))
{
// TODO: remove hardcoded value
(
httpCode
==
201
))
{
// TODO: remove hardcoded value
try
{
try
{
nlohmann
::
json
::
parse
(
*
httpData
.
get
()).
get_to
(
ue_auth_ctx
);
std
::
string
tmp
=
*
httpData
.
get
();
nlohmann
::
json
::
parse
(
tmp
.
c_str
()).
get_to
(
ue_auth_ctx
);
Logger
::
amf_n11
().
debug
(
"UE Authentication, response from AUSF
\n
, %s "
,
tmp
.
c_str
());
}
catch
(
nlohmann
::
json
::
exception
&
e
)
{
}
catch
(
nlohmann
::
json
::
exception
&
e
)
{
Logger
::
amf_n11
().
warn
(
Logger
::
amf_n11
().
warn
(
"UE Authentication, could not parse
j
son from the AUSF "
"UE Authentication, could not parse
J
son from the AUSF "
"response"
);
"response"
);
// TODO: error handling
// TODO: error handling
return
false
;
return
false
;
...
...
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