aboutsummaryrefslogtreecommitdiff
path: root/project/src/crypto/sha1_one.c
diff options
context:
space:
mode:
Diffstat (limited to 'project/src/crypto/sha1_one.c')
-rw-r--r--project/src/crypto/sha1_one.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/project/src/crypto/sha1_one.c b/project/src/crypto/sha1_one.c
index a47b78b..15c482d 100644
--- a/project/src/crypto/sha1_one.c
+++ b/project/src/crypto/sha1_one.c
@@ -60,8 +60,10 @@
#include <string.h>
#include "wiimm-sha.h"
-unsigned char *WIIMM_SHA1(const unsigned char *d, size_t n, unsigned char *md)
-{
+#ifndef USE_SHA_LIB
+
+ unsigned char *WIIMM_SHA1(const unsigned char *d, size_t n, unsigned char *md)
+ {
WIIMM_SHA_CTX c;
static unsigned char m[SHA_DIGEST_LENGTH];
@@ -71,4 +73,7 @@ unsigned char *WIIMM_SHA1(const unsigned char *d, size_t n, unsigned char *md)
WIIMM_SHA1_Update(&c,d,n);
WIIMM_SHA1_Final(md,&c);
return(md);
-}
+ }
+
+#endif
+