Changeset 6491 for trunk/licq

Show
Ignore:
Timestamp:
08/24/08 00:25:29 (3 months ago)
Author:
flynd
Message:

Reverted to using MD5 from openssl until our own md5 function has been fixed.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/licq/src/icqpacket.cpp

    r6486 r6491  
    2424#endif 
    2525 
    26 #include "licq_md5.h" 
     26#include <openssl/md5.h> 
    2727 
    2828#include <boost/scoped_array.hpp> 
     
    837837  toHash += szPass; 
    838838  toHash += "AOL Instant Messenger (SM)"; 
    839   std::string digest = md5(toHash); 
     839  unsigned char szDigest[MD5_DIGEST_LENGTH]; 
     840  MD5((const unsigned char *)toHash.c_str(), toHash.size(), szDigest); 
    840841 
    841842  unsigned int uinlen = strlen(szUin); 
    842843 
    843   m_nSize += uinlen + digest.size() + 70; 
     844  m_nSize += uinlen + MD5_DIGEST_LENGTH + 70; 
    844845  InitBuffer(); 
    845846 
    846847  buffer->PackTLV(0x0001, uinlen, szUin); 
    847   buffer->PackTLV(0x0025, digest.size(), digest.c_str()); 
     848  buffer->PackTLV(0x0025, MD5_DIGEST_LENGTH, reinterpret_cast<char *>(szDigest)); 
    848849 
    849850  buffer->PackTLV(0x0003, 0x0008, "ICQBasic");