aboutsummaryrefslogtreecommitdiff
path: root/project/src/crypt.h
diff options
context:
space:
mode:
Diffstat (limited to 'project/src/crypt.h')
-rw-r--r--project/src/crypt.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/project/src/crypt.h b/project/src/crypt.h
index c541bc8..6bf4359 100644
--- a/project/src/crypt.h
+++ b/project/src/crypt.h
@@ -38,8 +38,12 @@
#ifndef WIIMM_CRYPT_H
#define WIIMM_CRYPT_H 1
-#include "crypto/wiimm-sha.h"
-#define SHA1 WIIMM_SHA1
+#ifdef USE_SHA_LIB
+ #include <openssl/sha.h>
+#else
+ #include "crypto/wiimm-sha.h"
+ #define SHA1 WIIMM_SHA1
+#endif
#endif // WIIMM_CRYPT_H