version 0.3.2
[fms.git] / src / freenet / identityintroductionrequester.cpp
index 7def9f2..6552770 100644 (file)
@@ -277,7 +277,6 @@ void IdentityIntroductionRequester::StartRequest(const std::string &UUID)
 {\r
        std::string day;\r
        std::string solution;\r
-//     std::vector<unsigned char> solutionhash;\r
        std::string encodedhash;\r
        FCPMessage message;\r
        SQLite3DB::Statement st=m_db->Prepare("SELECT Day, PuzzleSolution FROM tblIntroductionPuzzleInserts WHERE FoundSolution='false' AND UUID=?;");\r
@@ -289,16 +288,12 @@ void IdentityIntroductionRequester::StartRequest(const std::string &UUID)
                st.ResultText(0,day);\r
                st.ResultText(1,solution);\r
 \r
+               // get the hash of the solution\r
                Poco::SHA1Engine sha1;\r
                sha1.update(solution);\r
                encodedhash=Poco::DigestEngine::digestToHex(sha1.digest());\r
                StringFunctions::UpperCase(encodedhash,encodedhash);\r
 \r
-               // get the hash of the solution\r
-//             solutionhash.resize(20);\r
-//             sha1((unsigned char *)solution.c_str(),solution.size(),&solutionhash[0]);\r
-//             Hex::Encode(solutionhash,encodedhash);\r
-\r
                //start request for the solution\r
                message.SetName("ClientGet");\r
                message["URI"]="KSK@"+m_messagebase+"|"+day+"|"+UUID+"|"+encodedhash+".xml";\r