diff options
| author | Ilya Dryomov <idryomov@gmail.com> | 2015-10-26 17:23:56 -0400 |
|---|---|---|
| committer | Ilya Dryomov <idryomov@gmail.com> | 2015-11-02 17:37:45 -0500 |
| commit | 79dbd1baa651cece408e68a1b445f3628c4b5bdc (patch) | |
| tree | 182592068bebc4ee6dbf46077a0a162aa7127a1f /include/linux/ceph | |
| parent | 8a703a383dd3458753e0ad71860ed3a5097692b3 (diff) | |
libceph: msg signing callouts don't need con argument
We can use msg->con instead - at the point we sign an outgoing message
or check the signature on the incoming one, msg->con is always set. We
wouldn't know how to sign a message without an associated session (i.e.
msg->con == NULL) and being able to sign a message using an explicitly
provided authorizer is of no use.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'include/linux/ceph')
| -rw-r--r-- | include/linux/ceph/messenger.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/ceph/messenger.h b/include/linux/ceph/messenger.h index b2371d9b51fa..3687ff0f0133 100644 --- a/include/linux/ceph/messenger.h +++ b/include/linux/ceph/messenger.h | |||
| @@ -43,10 +43,9 @@ struct ceph_connection_operations { | |||
| 43 | struct ceph_msg * (*alloc_msg) (struct ceph_connection *con, | 43 | struct ceph_msg * (*alloc_msg) (struct ceph_connection *con, |
| 44 | struct ceph_msg_header *hdr, | 44 | struct ceph_msg_header *hdr, |
| 45 | int *skip); | 45 | int *skip); |
| 46 | int (*sign_message) (struct ceph_connection *con, struct ceph_msg *msg); | ||
| 47 | 46 | ||
| 48 | int (*check_message_signature) (struct ceph_connection *con, | 47 | int (*sign_message) (struct ceph_msg *msg); |
| 49 | struct ceph_msg *msg); | 48 | int (*check_message_signature) (struct ceph_msg *msg); |
| 50 | }; | 49 | }; |
| 51 | 50 | ||
| 52 | /* use format string %s%d */ | 51 | /* use format string %s%d */ |
