diff options
-rw-r--r-- | net/ceph/auth_x.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/net/ceph/auth_x.c b/net/ceph/auth_x.c index ab080bb18254..05e9fc21d460 100644 --- a/net/ceph/auth_x.c +++ b/net/ceph/auth_x.c | |||
@@ -684,8 +684,7 @@ static void ceph_x_destroy(struct ceph_auth_client *ac) | |||
684 | ac->private = NULL; | 684 | ac->private = NULL; |
685 | } | 685 | } |
686 | 686 | ||
687 | static void ceph_x_invalidate_authorizer(struct ceph_auth_client *ac, | 687 | static void invalidate_ticket(struct ceph_auth_client *ac, int peer_type) |
688 | int peer_type) | ||
689 | { | 688 | { |
690 | struct ceph_x_ticket_handler *th; | 689 | struct ceph_x_ticket_handler *th; |
691 | 690 | ||
@@ -694,6 +693,19 @@ static void ceph_x_invalidate_authorizer(struct ceph_auth_client *ac, | |||
694 | th->have_key = false; | 693 | th->have_key = false; |
695 | } | 694 | } |
696 | 695 | ||
696 | static void ceph_x_invalidate_authorizer(struct ceph_auth_client *ac, | ||
697 | int peer_type) | ||
698 | { | ||
699 | /* | ||
700 | * We are to invalidate a service ticket in the hopes of | ||
701 | * getting a new, hopefully more valid, one. But, we won't get | ||
702 | * it unless our AUTH ticket is good, so invalidate AUTH ticket | ||
703 | * as well, just in case. | ||
704 | */ | ||
705 | invalidate_ticket(ac, peer_type); | ||
706 | invalidate_ticket(ac, CEPH_ENTITY_TYPE_AUTH); | ||
707 | } | ||
708 | |||
697 | static int calcu_signature(struct ceph_x_authorizer *au, | 709 | static int calcu_signature(struct ceph_x_authorizer *au, |
698 | struct ceph_msg *msg, __le64 *sig) | 710 | struct ceph_msg *msg, __le64 *sig) |
699 | { | 711 | { |