Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
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
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
zzha zzha
OpenXG-RAN
Commits
2cea2dbe
Commit
2cea2dbe
authored
Mar 26, 2016
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get rid of "const" warnings in nas_message.c
parent
ce0adf77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
openair3/NAS/COMMON/API/NETWORK/nas_message.c
openair3/NAS/COMMON/API/NETWORK/nas_message.c
+10
-10
No files found.
openair3/NAS/COMMON/API/NETWORK/nas_message.c
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
;
...
...
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