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
20022024
Unverified
Commit
20022024
authored
Oct 25, 2021
by
kharade
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ausf auth rest call with http2
parent
31c75155
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+9
-3
No files found.
src/amf-app/amf_n1.cpp
View file @
20022024
...
...
@@ -1422,9 +1422,11 @@ bool amf_n1::get_authentication_vectors_from_ausf(
free_wrapper
((
void
**
)
&
auts_s
);
// free_wrapper((void**) &rand_s);
}
uint8_t
http_version
=
1
;
if
(
amf_cfg
.
support_features
.
use_http2
)
http_version
=
2
;
if
(
amf_n11_inst
->
send_ue_authentication_request
(
authenticationinfo
,
ueauthenticationctx
,
1
))
{
authenticationinfo
,
ueauthenticationctx
,
http_version
))
{
unsigned
char
*
r5gauthdata_rand
=
conv
::
format_string_as_hex
(
ueauthenticationctx
.
getR5gAuthData
().
getRand
());
memcpy
(
nc
.
get
()
->
_5g_av
[
0
].
rand
,
r5gauthdata_rand
,
16
);
...
...
@@ -1451,7 +1453,7 @@ bool amf_n1::get_authentication_vectors_from_ausf(
if
(
iter
!=
ueauthenticationctx
.
getLinks
().
end
())
{
nc
.
get
()
->
Href
=
iter
->
second
.
getHref
();
Logger
::
amf_n1
().
info
(
"Links is:
"
,
nc
.
get
()
->
Href
);
Logger
::
amf_n1
().
info
(
"Links is:
%s"
,
nc
.
get
()
->
Href
.
c_str
()
);
}
else
{
Logger
::
amf_n1
().
error
(
"Not found 5G_AKA"
);
}
...
...
@@ -1498,7 +1500,11 @@ bool amf_n1::_5g_aka_confirmation_from_ausf(
msgBody
=
confirmationdata_j
.
dump
();
// TODO: Should be updated
amf_n11_inst
->
curl_http_client
(
remoteUri
,
"PUT"
,
msgBody
,
response
);
uint8_t
http_version
=
1
;
if
(
amf_cfg
.
support_features
.
use_http2
)
http_version
=
2
;
amf_n11_inst
->
curl_http_client
(
remoteUri
,
"PUT"
,
msgBody
,
response
,
http_version
);
free_wrapper
((
void
**
)
&
resStar_s
);
try
{
...
...
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