int create(CephContext *cct, int type);
int encrypt(CephContext *cct, const bufferlist& in, bufferlist& out,
std::string *error) const {
- assert(ckh); // Bad key?
+ ceph_assert(ckh); // Bad key?
return ckh->encrypt(in, out, error);
}
int decrypt(CephContext *cct, const bufferlist& in, bufferlist& out,
std::string *error) const {
- assert(ckh); // Bad key?
+ ceph_assert(ckh); // Bad key?
return ckh->decrypt(in, out, error);
}
std::size_t encrypt(CephContext*, const in_slice_t& in,
const out_slice_t& out) {
- assert(ckh);
+ ceph_assert(ckh);
return ckh->encrypt(in, out);
}
std::size_t decrypt(CephContext*, const in_slice_t& in,
const out_slice_t& out) {
- assert(ckh);
+ ceph_assert(ckh);
return ckh->encrypt(in, out);
}
ldout(cct, 0) << "verify_authorizer could not get service secret for service "
<< ceph_entity_type_name(service_id) << " secret_id=" << ticket.secret_id << dendl;
if (cct->_conf->auth_debug && ticket.secret_id == 0)
- assert(0 == "got secret_id=0");
+ ceph_assert(0 == "got secret_id=0");
return false;
}
}
CephXTicketHandler newTicketHandler(cct, type);
std::pair < tickets_map_t::iterator, bool > res =
tickets_map.insert(std::make_pair(type, newTicketHandler));
- assert(res.second);
+ ceph_assert(res.second);
return res.first->second;
}
CephXAuthorizer *build_authorizer(uint32_t service_id) const;