summaryrefslogtreecommitdiffstats
path: root/game/server/whitelist.hh
blob: 6cbaa0bca38f5cfe10137d98b05edeac2be8ebd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef SERVER_WHITELIST_HH
#define SERVER_WHITELIST_HH 1
#pragma once

class ConfigBoolean;
class ConfigString;

namespace whitelist
{
extern ConfigBoolean enabled;
extern ConfigString filename;
} // namespace whitelist

namespace whitelist
{
void init(void);
void init_late(void);
void deinit(void);
} // namespace whitelist

namespace whitelist
{
bool contains(const char *username);
bool matches(const char *username, std::uint64_t password_hash);
} // namespace whitelist

#endif /* SERVER_WHITELIST_HH  */