Part of a changeset to allow building all of 'common' without relying
on 'using namespace std' or 'using namespace ceph' at toplevel in
headers.
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
- If no auth protocol defined, `cephx` is used by default, it's debatable if
ceph should abort here or use `cephx` by default, but if `cephx` is used
in this case it's better to give some warning message.
- ceph has CEPH_AUTH_UNKNOWN auth protocol defined, change to use this
protocol if the auth method is unknown.
Signed-off-by: Dave Chen <wei.d.chen@intel.com>
Make sure the iterator isn't incremented twice if a element gets erased.
Move increment out of the for-loop header and add it to a new else block.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
If both cephx and none are accepted auth methods, and
cephx keyring cannot be found then resort to using
none, instead of failing.
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>