--- a/Plugins/Bonjour/libezv/Private Classes/AWEzvContactManagerRendezvous.m Mon Apr 30 18:59:40 2012 -0400
+++ b/Plugins/Bonjour/libezv/Private Classes/AWEzvContactManagerRendezvous.m Mon Apr 30 19:34:32 2012 -0400
@@ -40,7 +40,7 @@
#import "AWEzvSupportRoutines.h"
+#import <CommonCrypto/CommonDigest.h> /* One of the stupidest things I've ever met. Doing DNS lookups using the standard
* functions does not for mDNS records work unless you're in BIND 8 compatibility
@@ -331,7 +331,7 @@
- (void)setImageData:(NSData *)JPEGData
DNSServiceErrorType error;
unsigned char digest[20];
if (avDNSReference == NULL) {
@@ -382,9 +382,9 @@
if (error == kDNSServiceErr_NoError) {
- SHA1_Update(&ctx, [JPEGData bytes], (unsigned long)[JPEGData length]);
- SHA1_Final(digest, &ctx);
+ CC_SHA1_Update(&ctx, [JPEGData bytes], (CC_LONG)[JPEGData length]); + CC_SHA1_Final(digest, &ctx); imagehash = [NSData dataWithBytes:digest length:20];
AILogWithSignature(@"Will update with hash %@; length is %u", imagehash, [JPEGData length]);