sha1: Include <library.h> instead of directly including <arpa/inet.h>
authorMartin Willi <martin@revosec.ch>
Fri, 25 Oct 2013 14:41:04 +0000 (16:41 +0200)
committerMartin Willi <martin@revosec.ch>
Wed, 4 Jun 2014 13:53:02 +0000 (15:53 +0200)
On Windows we don't have <arpa/inet.h>

src/libstrongswan/plugins/sha1/sha1_hasher.c
src/libstrongswan/plugins/sha1/sha1_prf.c

index b0efbae..b51a261 100644 (file)
@@ -18,7 +18,8 @@
  */
 
 #include <string.h>
-#include <arpa/inet.h>
+
+#include <library.h>
 
 #include "sha1_hasher.h"
 
@@ -257,4 +258,3 @@ sha1_hasher_t *sha1_hasher_create(hash_algorithm_t algo)
 
        return &(this->public);
 }
-
index cdc494b..cc4924a 100644 (file)
@@ -16,7 +16,7 @@
 #include "sha1_prf.h"
 #include "sha1_hasher.h"
 
-#include <arpa/inet.h>
+#include <library.h>
 
 typedef struct private_sha1_prf_t private_sha1_prf_t;
 typedef struct private_sha1_hasher_t private_sha1_hasher_t;
@@ -148,4 +148,3 @@ sha1_prf_t *sha1_prf_create(pseudo_random_function_t algo)
 
        return &this->public;
 }
-