summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/WhatsAPI++/utilities.cpp
diff options
context:
space:
mode:
authorFishbone <fishbone@miranda-ng.org>2013-06-03 13:55:50 +0000
committerFishbone <fishbone@miranda-ng.org>2013-06-03 13:55:50 +0000
commit70e02c41dc4693a742dda252557588947e6be37a (patch)
tree7485ecd628e6e6a96943660872167dc5771f9b9a /protocols/WhatsApp/src/WhatsAPI++/utilities.cpp
parent9f631693a3094124ac7f34f1fa34008116ba6afc (diff)
WhatsApp:
* Tried fixing requesting registration code * Started removing Miranda dependecies in WhatsAPI++ git-svn-id: http://svn.miranda-ng.org/main/trunk@4871 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/WhatsAPI++/utilities.cpp')
-rw-r--r--protocols/WhatsApp/src/WhatsAPI++/utilities.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/protocols/WhatsApp/src/WhatsAPI++/utilities.cpp b/protocols/WhatsApp/src/WhatsAPI++/utilities.cpp
index 489d222a66..90d03dbdaa 100644
--- a/protocols/WhatsApp/src/WhatsAPI++/utilities.cpp
+++ b/protocols/WhatsApp/src/WhatsAPI++/utilities.cpp
@@ -1,4 +1,3 @@
-#include "../common.h"
#include "utilities.h"
//#include "ApplicationData.h"
#include <iostream>
@@ -12,6 +11,9 @@
#include <fstream>
#include <iomanip>
+// #TODO Remove Miranda dependency
+#include "../common.h"
+
namespace Utilities{
const static char digits[] = {
@@ -81,11 +83,11 @@ std::string itoa(int value, unsigned int base) {
std::string processIdentity(const std::string& id){
std::string buffer_str = reverseString(id);
- BYTE digest[16];
+ unsigned char digest[16];
utils::md5string(buffer_str, digest);
buffer_str.clear();
- for(int i =0; i < SIZEOF(digest); i++){
+ for(int i =0; i < 16; i++){
int tmp = digest[i]+128;
int f = tmp & 0xff;