From fbf20bff013e4ca36ed7417376954723651f0a6f Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Mon, 24 Apr 2017 16:47:50 +0200 Subject: 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. --- include/ouroboros/ipcp.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'include/ouroboros/ipcp.h') diff --git a/include/ouroboros/ipcp.h b/include/ouroboros/ipcp.h index 4c815b83..b9c5b740 100644 --- a/include/ouroboros/ipcp.h +++ b/include/ouroboros/ipcp.h @@ -24,8 +24,6 @@ #ifndef OUROBOROS_IPCP_H #define OUROBOROS_IPCP_H -#include - #include #include #include @@ -50,6 +48,15 @@ enum pol_gam { COMPLETE = 0 }; +enum hash_algo { + HASH_CRC32 = 0, + HASH_MD5, + HASH_SHA3_224, + HASH_SHA3_256, + HASH_SHA3_384, + HASH_SHA3_512 +}; + struct ipcp_config { char * dif_name; enum ipcp_type type; -- cgit v1.2.3