]>
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) 2009-2011 New Dream Network | |
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 | #include "AuthUnknownAuthorizeHandler.h" | |
16 | ||
28e407b8 | 17 | bool AuthUnknownAuthorizeHandler::verify_authorizer( |
11fdf7f2 TL |
18 | CephContext *cct, |
19 | KeyStore *keys, | |
20 | const bufferlist& authorizer_data, | |
21 | size_t connection_secret_required_len, | |
22 | bufferlist * authorizer_reply, | |
23 | EntityName *entity_name, | |
24 | uint64_t *global_id, | |
25 | AuthCapsInfo *caps_info, | |
26 | CryptoKey *session_key, | |
27 | std::string *connection_secret, | |
28e407b8 | 28 | std::unique_ptr<AuthAuthorizerChallenge> *challenge) |
7c673cae FG |
29 | { |
30 | // For unknown authorizers, there's nothing to verify. They're "OK" by definition. PLR | |
31 | ||
32 | return true; | |
33 | } | |
34 | ||
35 | // Return type of crypto used for this session's data; for unknown, no crypt used | |
36 | ||
37 | int AuthUnknownAuthorizeHandler::authorizer_session_crypto() | |
38 | { | |
39 | return SESSION_CRYPTO_NONE; | |
40 | } |