diff options
| author | Wiimm <wiimm@wiimm.de> | 2020-11-30 16:16:56 +0100 |
|---|---|---|
| committer | Wiimm <wiimm@wiimm.de> | 2020-11-30 16:16:56 +0100 |
| commit | 9c0078c6b9c1309b48f9ece8b5cad1b9be9a75c5 (patch) | |
| tree | 0abd3b6a244076650e40a07e42adae9c2a6b2d8c /project/src/crypto/sha1_one.c | |
| parent | a0815499b2d9014695e6e261c909476729445360 (diff) | |
SZS v2.21a
Diffstat (limited to '')
| -rw-r--r-- | project/src/crypto/sha1_one.c | 11 |
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 + |
