Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Shweta Shrivastava
openairinterface5G
Commits
b9ed6b28
Commit
b9ed6b28
authored
10 years ago
by
gauthier
Browse files
Options
Downloads
Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@5661
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
baac437b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openair-cn/NAS/EURECOM-NAS/src/emm/Attach.c
+14
-0
14 additions, 0 deletions
openair-cn/NAS/EURECOM-NAS/src/emm/Attach.c
with
14 additions
and
0 deletions
openair-cn/NAS/EURECOM-NAS/src/emm/Attach.c
+
14
−
0
View file @
b9ed6b28
...
@@ -286,6 +286,8 @@ int emm_proc_attach(emm_proc_attach_type_t type)
...
@@ -286,6 +286,8 @@ int emm_proc_attach(emm_proc_attach_type_t type)
if
(
_emm_data
.
security
->
type
!=
EMM_KSI_NOT_AVAILABLE
)
{
if
(
_emm_data
.
security
->
type
!=
EMM_KSI_NOT_AVAILABLE
)
{
emm_as
->
ksi
=
_emm_data
.
security
->
eksi
;
emm_as
->
ksi
=
_emm_data
.
security
->
eksi
;
}
}
LOG_TRACE
(
INFO
,
"EMM-PROC - encryption 0x%X"
,
_emm_data
.
security
->
capability
.
encryption
);
LOG_TRACE
(
INFO
,
"EMM-PROC - integrity 0x%X"
,
_emm_data
.
security
->
capability
.
integrity
);
emm_as
->
encryption
=
_emm_data
.
security
->
capability
.
encryption
;
emm_as
->
encryption
=
_emm_data
.
security
->
capability
.
encryption
;
emm_as
->
integrity
=
_emm_data
.
security
->
capability
.
integrity
;
emm_as
->
integrity
=
_emm_data
.
security
->
capability
.
integrity
;
}
}
...
@@ -2309,6 +2311,18 @@ static int _emm_attach_accept(emm_data_context_t *emm_ctx, attach_data_t *data)
...
@@ -2309,6 +2311,18 @@ static int _emm_attach_accept(emm_data_context_t *emm_ctx, attach_data_t *data)
/* Setup EPS NAS security data */
/* Setup EPS NAS security data */
emm_as_set_security_data
(
&
emm_sap
.
u
.
emm_as
.
u
.
establish
.
sctx
,
emm_as_set_security_data
(
&
emm_sap
.
u
.
emm_as
.
u
.
establish
.
sctx
,
emm_ctx
->
security
,
FALSE
,
TRUE
);
emm_ctx
->
security
,
FALSE
,
TRUE
);
LOG_TRACE
(
INFO
,
"EMM-PROC - encryption = 0x%X "
,
emm_sap
.
u
.
emm_as
.
u
.
establish
.
encryption
);
LOG_TRACE
(
INFO
,
"EMM-PROC - integrity = 0x%X "
,
emm_sap
.
u
.
emm_as
.
u
.
establish
.
integrity
);
emm_sap
.
u
.
emm_as
.
u
.
establish
.
encryption
=
emm_ctx
->
security
->
selected_algorithms
.
encryption
;
emm_sap
.
u
.
emm_as
.
u
.
establish
.
integrity
=
emm_ctx
->
security
->
selected_algorithms
.
integrity
;
LOG_TRACE
(
INFO
,
"EMM-PROC - encryption = 0x%X (0x%X)"
,
emm_sap
.
u
.
emm_as
.
u
.
establish
.
encryption
,
emm_ctx
->
security
->
selected_algorithms
.
encryption
);
LOG_TRACE
(
INFO
,
"EMM-PROC - integrity = 0x%X (0x%X)"
,
emm_sap
.
u
.
emm_as
.
u
.
establish
.
integrity
,
emm_ctx
->
security
->
selected_algorithms
.
integrity
);
/* Get the activate default EPS bearer context request message to
/* Get the activate default EPS bearer context request message to
* transfer within the ESM container of the attach accept message */
* transfer within the ESM container of the attach accept message */
emm_sap
.
u
.
emm_as
.
u
.
establish
.
NASmsg
=
data
->
esm_msg
;
emm_sap
.
u
.
emm_as
.
u
.
establish
.
NASmsg
=
data
->
esm_msg
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment