mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Remove use of openssl constants
This commit is contained in:
@@ -8,7 +8,7 @@ static NSString* const kUserDefaultsReleaseNotesDigestKey = @"releaseNotesDigest
|
||||
static NSData* Digest (NSString* someString)
|
||||
{
|
||||
char const* str = [someString UTF8String];
|
||||
char md[SHA_DIGEST_LENGTH];
|
||||
char md[CC_SHA1_DIGEST_LENGTH];
|
||||
CC_SHA1((unsigned char*)str, strlen(str), (unsigned char*)md);
|
||||
return [NSData dataWithBytes:md length:sizeof(md)];
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ class SaveTests : public CxxTest::TestSuite
|
||||
|
||||
static std::string sha1 (std::string const& src)
|
||||
{
|
||||
char md[SHA_DIGEST_LENGTH];
|
||||
char md[CC_SHA1_DIGEST_LENGTH];
|
||||
CC_SHA1((unsigned char*)src.data(), src.size(), (unsigned char*)md);
|
||||
return std::string(md, md + sizeof(md));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user