summaryrefslogtreecommitdiffstats
path: root/ldid.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ldid.cpp')
-rw-r--r--ldid.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/ldid.cpp b/ldid.cpp
index e1fbda9..c2227a5 100644
--- a/ldid.cpp
+++ b/ldid.cpp
@@ -23,14 +23,12 @@
#include "minimal/string.h"
#include "minimal/mapping.h"
-extern "C" {
-#include "sha1.h"
-}
-
#include <cstring>
#include <string>
#include <vector>
+#include <openssl/sha.h>
+
#include <plist/plist.h>
struct fat_header {
@@ -719,10 +717,7 @@ struct CodeDirectory {
extern "C" uint32_t hash(uint8_t *k, uint32_t length, uint32_t initval);
void sha1(uint8_t *hash, uint8_t *data, size_t size) {
- SHA1Context context;
- SHA1Reset(&context);
- SHA1Input(&context, data, size);
- SHA1Result(&context, hash);
+ SHA1(data, size, hash);
}
struct CodesignAllocation {