summaryrefslogtreecommitdiff
path: root/src/auth.hh
blob: ba98b411cb0805154eb99a2e0293d9349b8423db (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
#ifndef AUTH_HH
#define AUTH_HH

#include <string>

namespace stuff {

class CGI;

class Auth {
public:
    static bool auth(CGI* cgi, const std::string& realm,
                     const std::string& passwd,
                     std::string* user);

private:
    Auth() = delete;
    ~Auth() = delete;
    Auth(Auth&) = delete;
    Auth& operator=(Auth&) = delete;
};

}  // namespace stuff

#endif /* AUTH_HH */