Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
06d7822a
Commit
06d7822a
authored
Mar 19, 2003
by
Thomas Walpuski
Committed by
David S. Miller
Mar 19, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPSEC]: Fix null authentication/encryption.
parent
15931833
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
net/ipv4/xfrm_user.c
net/ipv4/xfrm_user.c
+7
-1
net/key/af_key.c
net/key/af_key.c
+1
-0
No files found.
net/ipv4/xfrm_user.c
View file @
06d7822a
...
...
@@ -46,8 +46,14 @@ static int verify_one_alg(struct rtattr **xfrma, enum xfrm_attr_type_t type)
algp
=
RTA_DATA
(
rt
);
switch
(
type
)
{
case
XFRMA_ALG_AUTH
:
if
(
!
algp
->
alg_key_len
&&
strcmp
(
algp
->
alg_name
,
"digest_null"
)
!=
0
)
return
-
EINVAL
;
break
;
case
XFRMA_ALG_CRYPT
:
if
(
!
algp
->
alg_key_len
)
if
(
!
algp
->
alg_key_len
&&
strcmp
(
algp
->
alg_name
,
"cipher_null"
)
!=
0
)
return
-
EINVAL
;
break
;
...
...
net/key/af_key.c
View file @
06d7822a
...
...
@@ -900,6 +900,7 @@ static struct xfrm_state * pfkey_msg2xfrm_state(struct sadb_msg *hdr,
return
ERR_PTR
(
-
EINVAL
);
key
=
(
struct
sadb_key
*
)
ext_hdrs
[
SADB_EXT_KEY_AUTH
-
1
];
if
(
key
!=
NULL
&&
sa
->
sadb_sa_auth
!=
SADB_X_AALG_NULL
&&
((
key
->
sadb_key_bits
+
7
)
/
8
==
0
||
(
key
->
sadb_key_bits
+
7
)
/
8
>
key
->
sadb_key_len
*
sizeof
(
uint64_t
)))
return
ERR_PTR
(
-
EINVAL
);
...
...
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