X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Ffreenet%2Fidentityintroductionrequester.cpp;h=65527704dfdbbcdc55362b11f2e214f0e0c3a69a;hb=76805933f794915a72b7f0a21b12af6654759f4f;hp=7def9f2c00e4d830605f691992b98884d9b6a204;hpb=047cea32f848d605c549ec123c12c1c400dd7ec1;p=fms.git diff --git a/src/freenet/identityintroductionrequester.cpp b/src/freenet/identityintroductionrequester.cpp index 7def9f2..6552770 100644 --- a/src/freenet/identityintroductionrequester.cpp +++ b/src/freenet/identityintroductionrequester.cpp @@ -277,7 +277,6 @@ void IdentityIntroductionRequester::StartRequest(const std::string &UUID) { std::string day; std::string solution; -// std::vector solutionhash; std::string encodedhash; FCPMessage message; SQLite3DB::Statement st=m_db->Prepare("SELECT Day, PuzzleSolution FROM tblIntroductionPuzzleInserts WHERE FoundSolution='false' AND UUID=?;"); @@ -289,16 +288,12 @@ void IdentityIntroductionRequester::StartRequest(const std::string &UUID) st.ResultText(0,day); st.ResultText(1,solution); + // get the hash of the solution Poco::SHA1Engine sha1; sha1.update(solution); encodedhash=Poco::DigestEngine::digestToHex(sha1.digest()); StringFunctions::UpperCase(encodedhash,encodedhash); - // get the hash of the solution -// solutionhash.resize(20); -// sha1((unsigned char *)solution.c_str(),solution.size(),&solutionhash[0]); -// Hex::Encode(solutionhash,encodedhash); - //start request for the solution message.SetName("ClientGet"); message["URI"]="KSK@"+m_messagebase+"|"+day+"|"+UUID+"|"+encodedhash+".xml";