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
2cea2dbe
Commit
2cea2dbe
authored
9 years ago
by
Cédric Roux
Browse files
Options
Downloads
Patches
Plain Diff
get rid of "const" warnings in nas_message.c
parent
ce0adf77
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
openair3/NAS/COMMON/API/NETWORK/nas_message.c
+10
-10
10 additions, 10 deletions
openair3/NAS/COMMON/API/NETWORK/nas_message.c
with
10 additions
and
10 deletions
openair3/NAS/COMMON/API/NETWORK/nas_message.c
+
10
−
10
View file @
2cea2dbe
...
...
@@ -1016,10 +1016,10 @@ static int _nas_message_decrypt(
stream_cipher
.
count
=
count
;
stream_cipher
.
bearer
=
0x00
;
//33.401 section 8.1.1
stream_cipher
.
direction
=
direction
;
stream_cipher
.
message
=
src
;
stream_cipher
.
message
=
(
unsigned
char
*
)
src
;
/* length in bits */
stream_cipher
.
blength
=
length
<<
3
;
nas_stream_encrypt_eea1
(
&
stream_cipher
,
dest
);
nas_stream_encrypt_eea1
(
&
stream_cipher
,
(
unsigned
char
*
)
dest
);
/* Decode the first octet (security header type or EPS bearer identity,
* and protocol discriminator) */
DECODE_U8
(
dest
,
*
(
uint8_t
*
)(
&
header
),
size
);
...
...
@@ -1050,10 +1050,10 @@ static int _nas_message_decrypt(
stream_cipher
.
count
=
count
;
stream_cipher
.
bearer
=
0x00
;
//33.401 section 8.1.1
stream_cipher
.
direction
=
direction
;
stream_cipher
.
message
=
src
;
stream_cipher
.
message
=
(
unsigned
char
*
)
src
;
/* length in bits */
stream_cipher
.
blength
=
length
<<
3
;
nas_stream_encrypt_eea1
(
&
stream_cipher
,
dest
);
nas_stream_encrypt_eea1
(
&
stream_cipher
,
(
unsigned
char
*
)
dest
);
/* Decode the first octet (security header type or EPS bearer identity,
* and protocol discriminator) */
DECODE_U8
(
dest
,
*
(
uint8_t
*
)(
&
header
),
size
);
...
...
@@ -1178,10 +1178,10 @@ static int _nas_message_encrypt(
stream_cipher
.
count
=
count
;
stream_cipher
.
bearer
=
0x00
;
//33.401 section 8.1.1
stream_cipher
.
direction
=
direction
;
stream_cipher
.
message
=
src
;
stream_cipher
.
message
=
(
unsigned
char
*
)
src
;
/* length in bits */
stream_cipher
.
blength
=
length
<<
3
;
nas_stream_encrypt_eea1
(
&
stream_cipher
,
dest
);
nas_stream_encrypt_eea1
(
&
stream_cipher
,
(
unsigned
char
*
)
dest
);
LOG_FUNC_RETURN
(
length
);
...
...
@@ -1209,10 +1209,10 @@ static int _nas_message_encrypt(
stream_cipher
.
count
=
count
;
stream_cipher
.
bearer
=
0x00
;
//33.401 section 8.1.1
stream_cipher
.
direction
=
direction
;
stream_cipher
.
message
=
src
;
stream_cipher
.
message
=
(
unsigned
char
*
)
src
;
/* length in bits */
stream_cipher
.
blength
=
length
<<
3
;
nas_stream_encrypt_eea2
(
&
stream_cipher
,
dest
);
nas_stream_encrypt_eea2
(
&
stream_cipher
,
(
unsigned
char
*
)
dest
);
LOG_FUNC_RETURN
(
length
);
...
...
@@ -1344,7 +1344,7 @@ static uint32_t _nas_message_get_mac(
stream_cipher
.
count
=
count
;
stream_cipher
.
bearer
=
0x00
;
//33.401 section 8.1.1
stream_cipher
.
direction
=
direction
;
stream_cipher
.
message
=
buffer
;
stream_cipher
.
message
=
(
unsigned
char
*
)
buffer
;
/* length in bits */
stream_cipher
.
blength
=
length
<<
3
;
...
...
@@ -1390,7 +1390,7 @@ static uint32_t _nas_message_get_mac(
stream_cipher
.
count
=
count
;
stream_cipher
.
bearer
=
0x00
;
//33.401 section 8.1.1
stream_cipher
.
direction
=
direction
;
stream_cipher
.
message
=
buffer
;
stream_cipher
.
message
=
(
unsigned
char
*
)
buffer
;
/* length in bits */
stream_cipher
.
blength
=
length
<<
3
;
...
...
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