Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove use of openssl constants

  • Loading branch information...
commit 456374342a34b265dcbba56a8f8527643f7431d5 1 parent 15bd318
@sorbits sorbits authored
View
2  Applications/TextMate/src/AboutWindowController.mm
@@ -8,7 +8,7 @@
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)];
}
View
2  Frameworks/file/tests/t_save.cc
@@ -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));
}
Please sign in to comment.
Something went wrong with that request. Please try again.