diff Core/Toolbox.h @ 1446:8dc80ba768aa

refactoring: IHttpHandler does not use std::string to hold the request body
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 01 Jul 2015 13:16:12 +0200
parents ad94a3583b07
children 8f28a1cd2354
line wrap: on
line diff
--- a/Core/Toolbox.h	Wed Jul 01 12:30:19 2015 +0200
+++ b/Core/Toolbox.h	Wed Jul 01 13:16:12 2015 +0200
@@ -100,7 +100,10 @@
     void ComputeSHA1(std::string& result,
                      const std::string& data);
 
-    bool IsSHA1(const std::string& str);
+    bool IsSHA1(const char* str,
+                size_t size);
+
+    bool IsSHA1(const std::string& s);
 
     void DecodeBase64(std::string& result, 
                       const std::string& data);