summaryrefslogtreecommitdiffstats
path: root/src/ipsw.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipsw.c')
-rw-r--r--src/ipsw.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ipsw.c b/src/ipsw.c
index c8659e3..e7bd639 100644
--- a/src/ipsw.c
+++ b/src/ipsw.c
@@ -32,7 +32,15 @@
#include <limits.h>
#include <sys/stat.h>
#include <zip.h>
+#ifdef HAVE_OPENSSL
#include <openssl/sha.h>
+#else
+#include "sha1.h"
+#define SHA_CTX SHA1_CTX
+#define SHA1_Init SHA1Init
+#define SHA1_Update SHA1Update
+#define SHA1_Final SHA1Final
+#endif
#include "ipsw.h"
#include "locking.h"