- SHA1(instring, strlen(instring), &result);
- hashedPass = [NSData dataWithBytes:&result length:strlen(&result)];
- SHA1(password, strlen(password), &result);
- passwordStringHash = [NSData dataWithBytes:&result length:strlen(&result)];
+ result = SHA1(instring, strlen(instring), NULL);
+ hashedPass = [NSData dataWithBytes:result length:strlen(result)];
+ result = SHA1(password, strlen(password), NULL);
+ passwordStringHash = [NSData dataWithBytes:result length:strlen(result)];