Changeset 6486
- Timestamp:
- 08/13/08 14:04:56 (3 months ago)
- Location:
- trunk/licq
- Files:
-
- 2 added
- 2 modified
-
include/licq_md5.h (added)
-
src/icqpacket.cpp (modified) (2 diffs)
-
src/Makefile.am (modified) (1 diff)
-
src/md5.cpp (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/licq/src/icqpacket.cpp
r6467 r6486 24 24 #endif 25 25 26 #include <openssl/md5.h>26 #include "licq_md5.h" 27 27 28 28 #include <boost/scoped_array.hpp> … … 837 837 toHash += szPass; 838 838 toHash += "AOL Instant Messenger (SM)"; 839 unsigned char szDigest[MD5_DIGEST_LENGTH]; 840 MD5((const unsigned char *)toHash.c_str(), toHash.size(), szDigest); 839 std::string digest = md5(toHash); 841 840 842 841 unsigned int uinlen = strlen(szUin); 843 842 844 m_nSize += uinlen + MD5_DIGEST_LENGTH+ 70;843 m_nSize += uinlen + digest.size() + 70; 845 844 InitBuffer(); 846 845 847 846 buffer->PackTLV(0x0001, uinlen, szUin); 848 buffer->PackTLV(0x0025, MD5_DIGEST_LENGTH, reinterpret_cast<char *>(szDigest));847 buffer->PackTLV(0x0025, digest.size(), digest.c_str()); 849 848 850 849 buffer->PackTLV(0x0003, 0x0008, "ICQBasic"); -
trunk/licq/src/Makefile.am
r6396 r6486 20 20 hebrev.c icqcolor.cpp fifo.cpp protoplugind.cpp gpg.cpp \ 21 21 occupationcodes.c homepagecodes.c interestcodes.c \ 22 organizationcodes.c backgroundcodes.c providers.c rtf.cc 22 organizationcodes.c backgroundcodes.c providers.c rtf.cc md5.cpp 23 23 24 24 licq_LDADD = @SOCKS_LIBS@
