]>
Commit | Line | Data |
---|---|---|
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" | |
9f95a23c | 19 | #include "include/common_fwd.h" |
7c673cae FG |
20 | |
21 | struct CephxAuthorizeHandler : public AuthAuthorizeHandler { | |
11fdf7f2 TL |
22 | bool verify_authorizer( |
23 | CephContext *cct, | |
9f95a23c | 24 | const KeyStore& keys, |
f67539c2 | 25 | const ceph::buffer::list& authorizer_data, |
11fdf7f2 | 26 | size_t connection_secret_required_len, |
f67539c2 | 27 | ceph::buffer::list *authorizer_reply, |
11fdf7f2 TL |
28 | EntityName *entity_name, |
29 | uint64_t *global_id, | |
30 | AuthCapsInfo *caps_info, | |
31 | CryptoKey *session_key, | |
32 | std::string *connection_secret, | |
33 | std::unique_ptr<AuthAuthorizerChallenge> *challenge) override; | |
7c673cae FG |
34 | int authorizer_session_crypto() override; |
35 | }; | |
36 | ||
37 | ||
38 | ||
39 | #endif |