]> git.proxmox.com Git - ceph.git/blame - ceph/src/auth/cephx/CephxAuthorizeHandler.h
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / auth / cephx / CephxAuthorizeHandler.h
CommitLineData
7c673cae
FG
1// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2// vim: ts=8 sw=2 smarttab
3/*
4 * Ceph - scalable distributed file system
5 *
6 * Copyright (C) 2004-2009 Sage Weil <sage@newdream.net>
7 *
8 * This is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License version 2.1, as published by the Free Software
11 * Foundation. See file COPYING.
12 *
13 */
14
15#ifndef CEPH_CEPHXAUTHORIZEHANDLER_H
16#define CEPH_CEPHXAUTHORIZEHANDLER_H
17
18#include "auth/AuthAuthorizeHandler.h"
19
20class CephContext;
21
22struct CephxAuthorizeHandler : public AuthAuthorizeHandler {
11fdf7f2
TL
23 bool verify_authorizer(
24 CephContext *cct,
25 KeyStore *keys,
26 const bufferlist& authorizer_data,
27 size_t connection_secret_required_len,
28 bufferlist *authorizer_reply,
29 EntityName *entity_name,
30 uint64_t *global_id,
31 AuthCapsInfo *caps_info,
32 CryptoKey *session_key,
33 std::string *connection_secret,
34 std::unique_ptr<AuthAuthorizerChallenge> *challenge) override;
7c673cae
FG
35 int authorizer_session_crypto() override;
36};
37
38
39
40#endif