our current experimental Neutrino branch

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@27 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Commit: bc5bd4154e
Author: mrcolor <mrcolor@e54a6e83-5905-42d5-8d5c-058d10e6a962>
Date: 2009-12-08 (Tue, 08 Dec 2009)
This commit is contained in:
mrcolor
2009-12-08 11:05:11 +00:00
commit cb8dd3394d
876 changed files with 193775 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
//=============================================================================
// YHTTPD
// mod_auth : Authentication
//=============================================================================
#ifndef __yhttpd_mod_auth_h__
#define __yhttpd_mod_auth_h__
#include "yhook.h"
class CmAuth : public Cyhook
{
public:
bool authenticate;
CmAuth(){};
~CmAuth(){};
// Hooks
virtual THandleStatus Hook_PrepareResponse(CyhookHandler *hh);
virtual std::string getHookName(void) {return std::string("mod_auth");}
virtual std::string getHookVersion(void) {return std::string("$Revision: 1.2 $");}
virtual THandleStatus Hook_ReadConfig(CConfigFile *Config, CStringList &ConfigList);
protected:
bool CheckAuth(CyhookHandler *hh);
std::string decodeBase64(const char *b64buffer);
std::string username;
std::string password;
std::string no_auth_client;
};
#endif // __yhttpd_mod_auth_h__