1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
4 * Ceph - scalable distributed file system
6 * Copyright (C) 2004-2009 Sage Weil <sage@newdream.net>
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.
15 #ifndef CEPH_CEPHXAUTHORIZEHANDLER_H
16 #define CEPH_CEPHXAUTHORIZEHANDLER_H
18 #include "auth/AuthAuthorizeHandler.h"
19 #include "include/common_fwd.h"
21 struct CephxAuthorizeHandler
: public AuthAuthorizeHandler
{
22 bool verify_authorizer(
25 const bufferlist
& authorizer_data
,
26 size_t connection_secret_required_len
,
27 bufferlist
*authorizer_reply
,
28 EntityName
*entity_name
,
30 AuthCapsInfo
*caps_info
,
31 CryptoKey
*session_key
,
32 std::string
*connection_secret
,
33 std::unique_ptr
<AuthAuthorizerChallenge
> *challenge
) override
;
34 int authorizer_session_crypto() override
;