#define dout_subsys ceph_subsys_auth
+namespace {
+#ifdef WITH_SEASTAR
+ ceph::common::ConfigProxy& conf(CephContext*) {
+ return ceph::common::local_conf();
+ }
+#else
+ ConfigProxy& conf(CephContext* cct) {
+ return cct->_conf;
+ }
+#endif
+}
+
int CephxSessionHandler::_calc_signature(Message *m, uint64_t *psig)
{
const ceph_msg_header& header = m->get_header();
int CephxSessionHandler::sign_message(Message *m)
{
// If runtime signing option is off, just return success without signing.
- if (!cct->_conf->cephx_sign_messages) {
+ if (!conf(cct)->cephx_sign_messages) {
return 0;
}
int CephxSessionHandler::check_message_signature(Message *m)
{
// If runtime signing option is off, just return success without checking signature.
- if (!cct->_conf->cephx_sign_messages) {
+ if (!conf(cct)->cephx_sign_messages) {
return 0;
}
if ((features & CEPH_FEATURE_MSG_AUTH) == 0) {