]> git.karo-electronics.de Git - linux-beck.git/commit
libceph: ceph_x_encrypt_buflen() takes in_len
authorIlya Dryomov <idryomov@gmail.com>
Fri, 2 Dec 2016 15:35:06 +0000 (16:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Jan 2017 07:24:41 +0000 (08:24 +0100)
commit2e62bf3c6fe94b9c7fd37beac4b8b8fcd3f72d71
tree7e2a743181c38cd1b7ab5974d64a90668461bb6c
parent6d9b544d88a4a697211062fc2ab2eb0e28c01b13
libceph: ceph_x_encrypt_buflen() takes in_len

commit 36721ece1e84a25130c4befb930509b3f96de020 upstream.

Pass what's going to be encrypted - that's msg_b, not ticket_blob.
ceph_x_encrypt_buflen() returns the upper bound, so this doesn't change
the maxlen calculation, but makes it a bit clearer.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ceph/auth_x.c