rotating_secrets.clear();
}
- void add_auth(const EntityName& name, EntityAuth& auth) {
+ void add_auth(const EntityName& name, const EntityAuth& auth) {
secrets[name] = auth;
}
data.version = ver;
}
- void add_auth(const EntityName& name, EntityAuth& auth) {
+ void add_auth(const EntityName& name, const EntityAuth& auth) {
std::scoped_lock l{lock};
data.add_auth(name, auth);
}
* Authentication
*/
-bool cephx_build_service_ticket_blob(CephContext *cct, CephXSessionAuthInfo& info,
+bool cephx_build_service_ticket_blob(CephContext *cct, const CephXSessionAuthInfo& info,
CephXTicketBlob& blob)
{
CephXServiceTicketInfo ticket_info;
};
-extern bool cephx_build_service_ticket_blob(CephContext *cct,
- CephXSessionAuthInfo& ticket_info, CephXTicketBlob& blob);
+extern bool cephx_build_service_ticket_blob(CephContext *cct, const CephXSessionAuthInfo& ticket_info, CephXTicketBlob& blob);
extern void cephx_build_service_ticket_request(CephContext *cct,
uint32_t keys,
static constexpr uint64_t AUTH_ENC_MAGIC = 0xff009cad8826aa55ull;
template <typename T>
-void decode_decrypt_enc_bl(CephContext *cct, T& t, CryptoKey key,
+void decode_decrypt_enc_bl(CephContext *cct, T& t, const CryptoKey& key,
const ceph::buffer::list& bl_enc,
std::string &error)
{