]> git.proxmox.com Git - ceph.git/blob - ceph/src/auth/unknown/AuthUnknownServiceHandler.h
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / auth / unknown / AuthUnknownServiceHandler.h
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_AUTHUNKNOWNSERVICEHANDLER_H
16 #define CEPH_AUTHUNKNOWNSERVICEHANDLER_H
17
18 #include "auth/AuthServiceHandler.h"
19 #include "auth/Auth.h"
20
21 class CephContext;
22
23 class AuthUnknownServiceHandler : public AuthServiceHandler {
24 public:
25 AuthUnknownServiceHandler(CephContext *cct_)
26 : AuthServiceHandler(cct_) {}
27 ~AuthUnknownServiceHandler() {}
28
29 int start_session(const EntityName& name,
30 size_t connection_secret_required_length,
31 bufferlist *result_bl,
32 AuthCapsInfo *caps,
33 CryptoKey *session_key,
34 std::string *connection_secret) {
35 return 1;
36 }
37 int handle_request(bufferlist::iterator& indata,
38 size_t connection_secret_required_length,
39 bufferlist *result_bl,
40 uint64_t *global_id,
41 AuthCapsInfo *caps,
42 CryptoKey *session_key,
43 std::string *connection_secret) {
44 ceph_abort(); // shouldn't get called
45 return 0;
46 }
47
48 void build_cephx_response_header(int request_type, int status,
49 bufferlist& bl) {
50 }
51 };
52
53 #endif