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
6faa7cb6
Commit
6faa7cb6
authored
Jun 28, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use UDM api version from conf file
parent
98cd972b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
src/ausf_app/ausf_app.cpp
src/ausf_app/ausf_app.cpp
+10
-9
No files found.
src/ausf_app/ausf_app.cpp
View file @
6faa7cb6
...
...
@@ -136,8 +136,9 @@ void ausf_app::handle_ue_authentications(
udm_uri
=
"http://"
+
std
::
string
(
inet_ntoa
(
*
((
struct
in_addr
*
)
&
ausf_cfg
.
udm_addr
.
ipv4_addr
)))
+
":"
+
std
::
to_string
(
ausf_cfg
.
udm_addr
.
port
)
+
"/nudm-ueau/v1/"
+
supi
+
"/security-information/generate-auth-data"
;
":"
+
std
::
to_string
(
ausf_cfg
.
udm_addr
.
port
)
+
"/nudm-ueau/"
+
ausf_cfg
.
udm_addr
.
api_version
+
"/"
+
supi
+
"/security-information/generate-auth-data"
;
Logger
::
ausf_app
().
debug
(
"UDM's URI %s"
,
udm_uri
.
c_str
());
// Create AuthInfo to send to UDM
...
...
@@ -317,8 +318,7 @@ void ausf_app::handle_ue_authentications(
std
::
string
(
inet_ntoa
(
*
((
struct
in_addr
*
)
&
ausf_cfg
.
sbi
.
addr4
)))
+
":"
+
std
::
to_string
(
ausf_cfg
.
sbi
.
port
)
+
"/nausf-auth/v1/ue-authentications/"
+
authCtxId_s
+
"/5g-aka-confirmation"
;
ausf_Href
.
setHref
(
resourceURI
);
//"/nausf-auth/v1/ue-authentications/640110987654321/5g-aka-confirmation"
ausf_Href
.
setHref
(
resourceURI
);
ausf_links
[
"5G_AKA"
]
=
ausf_Href
;
UEAuthCtx
.
setLinks
(
ausf_links
);
...
...
@@ -433,11 +433,12 @@ void ausf_app::handle_ue_authentications_confirmation(
std
::
string
udm_uri
=
{};
std
::
string
method
=
"POST"
;
std
::
string
response
=
{};
udm_uri
=
"http://"
+
std
::
string
(
inet_ntoa
(
*
((
struct
in_addr
*
)
&
ausf_cfg
.
udm_addr
.
ipv4_addr
)))
+
":"
+
std
::
to_string
(
ausf_cfg
.
udm_addr
.
port
)
+
"/nudm-ueau/v1/"
+
sc
->
supi_ausf
+
"/auth-events"
;
udm_uri
=
"http://"
+
std
::
string
(
inet_ntoa
(
*
((
struct
in_addr
*
)
&
ausf_cfg
.
udm_addr
.
ipv4_addr
)))
+
":"
+
std
::
to_string
(
ausf_cfg
.
udm_addr
.
port
)
+
"/nudm-ueau/"
+
ausf_cfg
.
udm_addr
.
api_version
+
"/"
+
sc
->
supi_ausf
+
"/auth-events"
;
Logger
::
ausf_app
().
debug
(
"UDM's URI: %s"
,
udm_uri
.
c_str
());
...
...
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