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
nexedi
linux
Commits
6f2f19ed
Commit
6f2f19ed
authored
Feb 27, 2011
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xfrm: Pass name as const to xfrm_*_get_byname().
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
5a698af5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
include/net/xfrm.h
include/net/xfrm.h
+4
-4
net/xfrm/xfrm_algo.c
net/xfrm/xfrm_algo.c
+4
-4
net/xfrm/xfrm_user.c
net/xfrm/xfrm_user.c
+1
-1
No files found.
include/net/xfrm.h
View file @
6f2f19ed
...
@@ -1513,10 +1513,10 @@ extern struct xfrm_algo_desc *xfrm_ealg_get_byidx(unsigned int idx);
...
@@ -1513,10 +1513,10 @@ extern struct xfrm_algo_desc *xfrm_ealg_get_byidx(unsigned int idx);
extern
struct
xfrm_algo_desc
*
xfrm_aalg_get_byid
(
int
alg_id
);
extern
struct
xfrm_algo_desc
*
xfrm_aalg_get_byid
(
int
alg_id
);
extern
struct
xfrm_algo_desc
*
xfrm_ealg_get_byid
(
int
alg_id
);
extern
struct
xfrm_algo_desc
*
xfrm_ealg_get_byid
(
int
alg_id
);
extern
struct
xfrm_algo_desc
*
xfrm_calg_get_byid
(
int
alg_id
);
extern
struct
xfrm_algo_desc
*
xfrm_calg_get_byid
(
int
alg_id
);
extern
struct
xfrm_algo_desc
*
xfrm_aalg_get_byname
(
char
*
name
,
int
probe
);
extern
struct
xfrm_algo_desc
*
xfrm_aalg_get_byname
(
c
onst
c
har
*
name
,
int
probe
);
extern
struct
xfrm_algo_desc
*
xfrm_ealg_get_byname
(
char
*
name
,
int
probe
);
extern
struct
xfrm_algo_desc
*
xfrm_ealg_get_byname
(
c
onst
c
har
*
name
,
int
probe
);
extern
struct
xfrm_algo_desc
*
xfrm_calg_get_byname
(
char
*
name
,
int
probe
);
extern
struct
xfrm_algo_desc
*
xfrm_calg_get_byname
(
c
onst
c
har
*
name
,
int
probe
);
extern
struct
xfrm_algo_desc
*
xfrm_aead_get_byname
(
char
*
name
,
int
icv_len
,
extern
struct
xfrm_algo_desc
*
xfrm_aead_get_byname
(
c
onst
c
har
*
name
,
int
icv_len
,
int
probe
);
int
probe
);
struct
hash_desc
;
struct
hash_desc
;
...
...
net/xfrm/xfrm_algo.c
View file @
6f2f19ed
...
@@ -618,21 +618,21 @@ static int xfrm_alg_name_match(const struct xfrm_algo_desc *entry,
...
@@ -618,21 +618,21 @@ static int xfrm_alg_name_match(const struct xfrm_algo_desc *entry,
(
entry
->
compat
&&
!
strcmp
(
name
,
entry
->
compat
)));
(
entry
->
compat
&&
!
strcmp
(
name
,
entry
->
compat
)));
}
}
struct
xfrm_algo_desc
*
xfrm_aalg_get_byname
(
char
*
name
,
int
probe
)
struct
xfrm_algo_desc
*
xfrm_aalg_get_byname
(
c
onst
c
har
*
name
,
int
probe
)
{
{
return
xfrm_find_algo
(
&
xfrm_aalg_list
,
xfrm_alg_name_match
,
name
,
return
xfrm_find_algo
(
&
xfrm_aalg_list
,
xfrm_alg_name_match
,
name
,
probe
);
probe
);
}
}
EXPORT_SYMBOL_GPL
(
xfrm_aalg_get_byname
);
EXPORT_SYMBOL_GPL
(
xfrm_aalg_get_byname
);
struct
xfrm_algo_desc
*
xfrm_ealg_get_byname
(
char
*
name
,
int
probe
)
struct
xfrm_algo_desc
*
xfrm_ealg_get_byname
(
c
onst
c
har
*
name
,
int
probe
)
{
{
return
xfrm_find_algo
(
&
xfrm_ealg_list
,
xfrm_alg_name_match
,
name
,
return
xfrm_find_algo
(
&
xfrm_ealg_list
,
xfrm_alg_name_match
,
name
,
probe
);
probe
);
}
}
EXPORT_SYMBOL_GPL
(
xfrm_ealg_get_byname
);
EXPORT_SYMBOL_GPL
(
xfrm_ealg_get_byname
);
struct
xfrm_algo_desc
*
xfrm_calg_get_byname
(
char
*
name
,
int
probe
)
struct
xfrm_algo_desc
*
xfrm_calg_get_byname
(
c
onst
c
har
*
name
,
int
probe
)
{
{
return
xfrm_find_algo
(
&
xfrm_calg_list
,
xfrm_alg_name_match
,
name
,
return
xfrm_find_algo
(
&
xfrm_calg_list
,
xfrm_alg_name_match
,
name
,
probe
);
probe
);
...
@@ -654,7 +654,7 @@ static int xfrm_aead_name_match(const struct xfrm_algo_desc *entry,
...
@@ -654,7 +654,7 @@ static int xfrm_aead_name_match(const struct xfrm_algo_desc *entry,
!
strcmp
(
name
,
entry
->
name
);
!
strcmp
(
name
,
entry
->
name
);
}
}
struct
xfrm_algo_desc
*
xfrm_aead_get_byname
(
char
*
name
,
int
icv_len
,
int
probe
)
struct
xfrm_algo_desc
*
xfrm_aead_get_byname
(
c
onst
c
har
*
name
,
int
icv_len
,
int
probe
)
{
{
struct
xfrm_aead_name
data
=
{
struct
xfrm_aead_name
data
=
{
.
name
=
name
,
.
name
=
name
,
...
...
net/xfrm/xfrm_user.c
View file @
6f2f19ed
...
@@ -234,7 +234,7 @@ static int verify_newsa_info(struct xfrm_usersa_info *p,
...
@@ -234,7 +234,7 @@ static int verify_newsa_info(struct xfrm_usersa_info *p,
}
}
static
int
attach_one_algo
(
struct
xfrm_algo
**
algpp
,
u8
*
props
,
static
int
attach_one_algo
(
struct
xfrm_algo
**
algpp
,
u8
*
props
,
struct
xfrm_algo_desc
*
(
*
get_byname
)(
char
*
,
int
),
struct
xfrm_algo_desc
*
(
*
get_byname
)(
c
onst
c
har
*
,
int
),
struct
nlattr
*
rta
)
struct
nlattr
*
rta
)
{
{
struct
xfrm_algo
*
p
,
*
ualg
;
struct
xfrm_algo
*
p
,
*
ualg
;
...
...
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