diff options
author | Sander Vrijders <sander.vrijders@ugent.be> | 2017-04-24 16:47:50 +0200 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@ugent.be> | 2017-04-24 16:47:50 +0200 |
commit | fbf20bff013e4ca36ed7417376954723651f0a6f (patch) | |
tree | ec99c0417dd9a341d5333b990b85a50539f661b6 /include/ouroboros/hash.h | |
parent | 1bca9a9848dc842e2a40c666560391cdd4c95ca0 (diff) | |
download | ouroboros-fbf20bff013e4ca36ed7417376954723651f0a6f.tar.gz ouroboros-fbf20bff013e4ca36ed7417376954723651f0a6f.zip |
lib: Remove dependency on installed headers
The header ipcp.h was not installed systemwide, giving compile time
errors when trying to compile external programs that use irm.h. ipcp.h
also included hash.h, which exposes project interal functions. The
enum was moved to ipcp.h to prevent this.
Diffstat (limited to 'include/ouroboros/hash.h')
-rw-r--r-- | include/ouroboros/hash.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/include/ouroboros/hash.h b/include/ouroboros/hash.h index 60bfbe30..de3ce541 100644 --- a/include/ouroboros/hash.h +++ b/include/ouroboros/hash.h @@ -24,18 +24,12 @@ #ifndef OUROBOROS_LIB_HASH_H #define OUROBOROS_LIB_HASH_H +#include <ouroboros/ipcp.h> + #include <ouroboros/crc32.h> #include <ouroboros/md5.h> #include <ouroboros/sha3.h> -enum hash_algo { - HASH_CRC32 = 0, - HASH_MD5, - HASH_SHA3_224, - HASH_SHA3_256, - HASH_SHA3_384, - HASH_SHA3_512 -}; #define HASH_FMT "%02x%02x%02x%02x" #define HASH_VAL(hash) \ |