Stupid winsock needs special way to close sockets.
[dftpd.git] / Auth.hpp
blob4ee54ae2c5b2a924a2417424f9c2e909be674d7b
1 #ifndef __DFTPD__AUTH_HPP__
2 #define __DFTPD__AUTH_HPP__
4 #include <string>
5 #include <boost/shared_ptr.hpp>
6 #include <boost/weak_ptr.hpp>
8 class Auth
10 public:
11 virtual ~Auth() {}
13 virtual bool Login( const std::string& login ) = 0;
14 virtual bool Password( const std::string& login, const std::string& password ) = 0;
15 virtual std::string GetRoot( const std::string& login ) = 0;
18 typedef boost::shared_ptr<Auth> AuthPtr;
19 typedef boost::weak_ptr<Auth> AuthWPtr;
21 #endif