]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
cephx: Fix incorrect use of __le16/32/64
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Mon, 2 Sep 2019 19:23:47 +0000 (21:23 +0200)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Thu, 5 Sep 2019 08:50:04 +0000 (10:50 +0200)
commit2154be1a802a518aa80b5a29ad34eedfd4761aee
tree9baf041d2f3685719344221f2cf66c55dfb2571b
parent63609fd1aef9811d9d3c9bd27bb9d2c88f1c2fe8
cephx: Fix incorrect use of __le16/32/64

Use ceph_le16/32/64 instead of __le16/32/64 (which are no-op outside
of kernel code).

Note that I've also changes cephx_calc_client_server_challenge to
use ceph_le64 instead of manually byte-swapping by mswab.  (This
is a no-op, but it seems more consistent to use the ceph_le types
throughout.)

Fixes (partially): https://tracker.ceph.com/issues/41605

Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
src/auth/cephx/CephxProtocol.cc
src/auth/cephx/CephxSessionHandler.cc