Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
linux
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martyn Welch
linux
Commits
2f0df6cf
Commit
2f0df6cf
authored
4 years ago
by
Ilya Dryomov
Browse files
Options
Downloads
Patches
Plain Diff
libceph: drop ceph_auth_{create,update}_authorizer()
Signed-off-by:
Ilya Dryomov
<
idryomov@gmail.com
>
parent
ce287162
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/linux/ceph/auth.h
+0
-6
0 additions, 6 deletions
include/linux/ceph/auth.h
net/ceph/auth.c
+0
-28
0 additions, 28 deletions
net/ceph/auth.c
with
0 additions
and
34 deletions
include/linux/ceph/auth.h
+
0
−
6
View file @
2f0df6cf
...
...
@@ -126,13 +126,7 @@ int __ceph_auth_get_authorizer(struct ceph_auth_client *ac,
struct
ceph_auth_handshake
*
auth
,
int
peer_type
,
bool
force_new
,
int
*
proto
,
int
*
pref_mode
,
int
*
fallb_mode
);
extern
int
ceph_auth_create_authorizer
(
struct
ceph_auth_client
*
ac
,
int
peer_type
,
struct
ceph_auth_handshake
*
auth
);
void
ceph_auth_destroy_authorizer
(
struct
ceph_authorizer
*
a
);
extern
int
ceph_auth_update_authorizer
(
struct
ceph_auth_client
*
ac
,
int
peer_type
,
struct
ceph_auth_handshake
*
a
);
int
ceph_auth_add_authorizer_challenge
(
struct
ceph_auth_client
*
ac
,
struct
ceph_authorizer
*
a
,
void
*
challenge_buf
,
...
...
This diff is collapsed.
Click to expand it.
net/ceph/auth.c
+
0
−
28
View file @
2f0df6cf
...
...
@@ -326,40 +326,12 @@ int __ceph_auth_get_authorizer(struct ceph_auth_client *ac,
}
EXPORT_SYMBOL
(
__ceph_auth_get_authorizer
);
int
ceph_auth_create_authorizer
(
struct
ceph_auth_client
*
ac
,
int
peer_type
,
struct
ceph_auth_handshake
*
auth
)
{
int
ret
=
0
;
mutex_lock
(
&
ac
->
mutex
);
if
(
ac
->
ops
&&
ac
->
ops
->
create_authorizer
)
ret
=
ac
->
ops
->
create_authorizer
(
ac
,
peer_type
,
auth
);
mutex_unlock
(
&
ac
->
mutex
);
return
ret
;
}
EXPORT_SYMBOL
(
ceph_auth_create_authorizer
);
void
ceph_auth_destroy_authorizer
(
struct
ceph_authorizer
*
a
)
{
a
->
destroy
(
a
);
}
EXPORT_SYMBOL
(
ceph_auth_destroy_authorizer
);
int
ceph_auth_update_authorizer
(
struct
ceph_auth_client
*
ac
,
int
peer_type
,
struct
ceph_auth_handshake
*
a
)
{
int
ret
=
0
;
mutex_lock
(
&
ac
->
mutex
);
if
(
ac
->
ops
&&
ac
->
ops
->
update_authorizer
)
ret
=
ac
->
ops
->
update_authorizer
(
ac
,
peer_type
,
a
);
mutex_unlock
(
&
ac
->
mutex
);
return
ret
;
}
EXPORT_SYMBOL
(
ceph_auth_update_authorizer
);
int
ceph_auth_add_authorizer_challenge
(
struct
ceph_auth_client
*
ac
,
struct
ceph_authorizer
*
a
,
void
*
challenge_buf
,
...
...
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