diff options
author | Tharre <tharre3@gmail.com> | 2014-08-24 00:24:54 +0200 |
---|---|---|
committer | Tharre <tharre3@gmail.com> | 2014-08-24 00:24:54 +0200 |
commit | 1e951a9f3b3c35cc108d45acd73147a8dda36f6c (patch) | |
tree | e9090b548b478477fe45470f6b2eb6782e4f715b /src/build.c | |
parent | 3466aa6c7ca1ed05dc19e5fc92e230ddc1b17df3 (diff) | |
download | redo-1e951a9f3b3c35cc108d45acd73147a8dda36f6c.tar.gz redo-1e951a9f3b3c35cc108d45acd73147a8dda36f6c.tar.xz redo-1e951a9f3b3c35cc108d45acd73147a8dda36f6c.zip |
Replace openssl SHA1 functions with custom version
Diffstat (limited to 'src/build.c')
-rw-r--r-- | src/build.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/build.c b/src/build.c index bf4d023..7bbf809 100644 --- a/src/build.c +++ b/src/build.c @@ -19,8 +19,8 @@ #include <fcntl.h> #include <libgen.h> /* dirname(), basename() */ -#include <openssl/sha.h> +#include "sha1.h" #include "build.h" #include "util.h" #include "filepath.h" @@ -371,7 +371,7 @@ static void hash_file(const char *target, unsigned char (*hash)[HASHSIZE]) { static void write_dep_hash(const char *target) { assert(getenv("REDO_MAGIC")); - unsigned char hash[SHA_DIGEST_LENGTH]; + unsigned char hash[HASHSIZE]; unsigned magic = atoi(getenv("REDO_MAGIC")); hash_file(target, &hash); |