Debian Codegraph @

src/auth/SecurityDatabase/LegacyClient.h

raw
1 /*
2 * PROGRAM: Firebird authentication
3 * MODULE: LegacyClient.h
4 * DESCRIPTION: Performs legacy actions on DPB at client side.
5 *
6 * The contents of this file are subject to the Initial
7 * Developer's Public License Version 1.0 (the "License");
8 * you may not use this file except in compliance with the
9 * License. You may obtain a copy of the License at
10 * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl.
11 *
12 * Software distributed under the License is distributed AS IS,
13 * WITHOUT WARRANTY OF ANY KIND, either express or implied.
14 * See the License for the specific language governing rights
15 * and limitations under the License.
16 *
17 * The Original Code was created by Alex Peshkov
18 * for the Firebird Open Source RDBMS project.
19 *
20 * Copyright (c) 2010 Alex Peshkov <peshkoff at mail.ru>
21 * and all contributors signed below.
22 *
23 * All Rights Reserved.
24 * Contributor(s): ______________________________________.
25 */
26
27 #ifndef AUTH_LEGACY_CLIENT_H
28 #define AUTH_LEGACY_CLIENT_H
29
30 #include "firebird/Interface.h"
31 #include "../common/classes/ImplementHelper.h"
32
33 namespace Auth {
34
35 // Required to stop analyzing rest of plugins before first roundtrip to server
36 // if legacy login is present in DPB
37
38 class SecurityDatabaseClient FB_FINAL :
39 public Firebird::StdPlugin<Firebird::IClientImpl<SecurityDatabaseClient, Firebird::CheckStatusWrapper> >
40 {
41 public:
42 explicit SecurityDatabaseClient(Firebird::IPluginConfig*)
43 {
44 }
45
46 // IClient implementation
47 int authenticate(Firebird::CheckStatusWrapper*, Firebird::IClientBlock* data);
48 int release();
49 };
50
51 void registerLegacyClient(Firebird::IPluginManager* iPlugin);
52
53 } // namespace Auth
54
55 #endif // AUTH_LEGACY_CLIENT_H