X-Git-Url: https://git.pterodactylus.net/?p=fms.git;a=blobdiff_plain;f=include%2Ffreenet%2Fcaptcha%2Falternatecaptcha2.h;fp=include%2Ffreenet%2Fcaptcha%2Falternatecaptcha2.h;h=d76d832482232e2ae4e8e67ba9e2d789e6954f0f;hp=0000000000000000000000000000000000000000;hb=b7f3b3e6ae9dc527f02b5c06e2eeae0e9cac3ad8;hpb=f8c0410b12183ecb40aafbb44086fa146b25b528 diff --git a/include/freenet/captcha/alternatecaptcha2.h b/include/freenet/captcha/alternatecaptcha2.h new file mode 100644 index 0000000..d76d832 --- /dev/null +++ b/include/freenet/captcha/alternatecaptcha2.h @@ -0,0 +1,33 @@ +#ifndef _alternate_captcha2_ +#define _alternate_captcha2_ + +#ifdef ALTERNATE_CAPTCHA + +#include + +#include "icaptcha.h" +#include "alternatecaptchafonts.h" + +class AlternateCaptcha2:public ICaptcha +{ +public: + AlternateCaptcha2(); + + void Generate(); + + const bool GetPuzzle(std::vector &puzzle); + const bool GetSolution(std::vector &solution); + +private: + const std::string GenerateRandomString(const int len); + + std::vector m_fonts; + + std::vector m_puzzle; + std::vector m_solution; + +}; + +#endif // ALTERNATE_CAPTCHA + +#endif // _alternate_captcha2_