If NONE is supported, it will already be in the list of supported
protocols, so there's no need to default to it here. This prevents
clients that request the NONE protocol from authenticating when the
server only accepts CEPHX. Instead, they get -ENOTSUP from the
AuthMonitor.
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
for (set<__u32>::const_reverse_iterator p = supp.rbegin(); p != supp.rend(); ++p)
if (is_supported_auth(*p))
return *p;
- return CEPH_AUTH_NONE;
+ return CEPH_AUTH_UNKNOWN;
}