summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--isisd/isis_tlvs.c5
-rw-r--r--lib/zebra.h5
-rw-r--r--ospf6d/ospf6_auth_trailer.c6
-rw-r--r--ospfd/ospf_auth.c5
-rw-r--r--ripd/ripd.c5
5 files changed, 21 insertions, 5 deletions
diff --git a/isisd/isis_tlvs.c b/isisd/isis_tlvs.c
index ecf43faa7..2b0a58b73 100644
--- a/isisd/isis_tlvs.c
+++ b/isisd/isis_tlvs.c
@@ -13,6 +13,11 @@
#include <zebra.h>
#include <json-c/json_object.h>
+#ifdef CRYPTO_OPENSSL
+#include <openssl/evp.h>
+#include <openssl/hmac.h>
+#endif
+
#ifdef CRYPTO_INTERNAL
#include "md5.h"
#endif
diff --git a/lib/zebra.h b/lib/zebra.h
index fe8ac150a..076f51608 100644
--- a/lib/zebra.h
+++ b/lib/zebra.h
@@ -83,11 +83,6 @@
#endif
#endif
-#ifdef CRYPTO_OPENSSL
-#include <openssl/evp.h>
-#include <openssl/hmac.h>
-#endif
-
#include "openbsd-tree.h"
#include <netinet/in.h>
diff --git a/ospf6d/ospf6_auth_trailer.c b/ospf6d/ospf6_auth_trailer.c
index 10e00921f..82671eef7 100644
--- a/ospf6d/ospf6_auth_trailer.c
+++ b/ospf6d/ospf6_auth_trailer.c
@@ -4,6 +4,12 @@
*/
#include "zebra.h"
+
+#ifdef CRYPTO_OPENSSL
+#include <openssl/evp.h>
+#include <openssl/hmac.h>
+#endif
+
#include "config.h"
#include "memory.h"
#include "ospf6d.h"
diff --git a/ospfd/ospf_auth.c b/ospfd/ospf_auth.c
index 11ee1ddb1..74dc7d556 100644
--- a/ospfd/ospf_auth.c
+++ b/ospfd/ospf_auth.c
@@ -6,6 +6,11 @@
#include <zebra.h>
+#ifdef CRYPTO_OPENSSL
+#include <openssl/evp.h>
+#include <openssl/hmac.h>
+#endif
+
#include "linklist.h"
#include "if.h"
#include "checksum.h"
diff --git a/ripd/ripd.c b/ripd/ripd.c
index a94dd96da..d5df16c3a 100644
--- a/ripd/ripd.c
+++ b/ripd/ripd.c
@@ -6,6 +6,11 @@
#include <zebra.h>
+#ifdef CRYPTO_OPENSSL
+#include <openssl/evp.h>
+#include <openssl/hmac.h>
+#endif
+
#include "vrf.h"
#include "if.h"
#include "command.h"