Mike Christie 3949e1
diff -aurp open-iscsi-2.0-872-rc4-bnx2i/utils/open-isns/db-policy.c open-iscsi-2.0-872-rc4-bnx2i.build/utils/open-isns/db-policy.c
Mike Christie 3949e1
--- open-iscsi-2.0-872-rc4-bnx2i/utils/open-isns/db-policy.c	2011-09-01 20:28:53.000000000 -0500
Mike Christie 3949e1
+++ open-iscsi-2.0-872-rc4-bnx2i.build/utils/open-isns/db-policy.c	2011-09-01 20:31:39.000000000 -0500
Mike Christie 3949e1
@@ -7,8 +7,10 @@
Mike Christie 3949e1
 #include <sys stat.h="">
Mike Christie 3949e1
 #include <string.h>
Mike Christie 3949e1
 #include <unistd.h>
Mike Christie 3949e1
+#ifdef WITH_SECURITY
Mike Christie 3949e1
 #include <openssl pem.h="">
Mike Christie 3949e1
 #include <openssl err.h="">
Mike Christie 3949e1
+#endif
Mike Christie 3949e1
 #include "isns.h"
Mike Christie 3949e1
 #include "security.h"
Mike Christie 3949e1
 #include "objects.h"
Mike Christie 3949e1
diff -aurp open-iscsi-2.0-872-rc4-bnx2i/utils/open-isns/security.h open-iscsi-2.0-872-rc4-bnx2i.build/utils/open-isns/security.h
Mike Christie 3949e1
--- open-iscsi-2.0-872-rc4-bnx2i/utils/open-isns/security.h	2011-09-01 20:28:53.000000000 -0500
Mike Christie 3949e1
+++ open-iscsi-2.0-872-rc4-bnx2i.build/utils/open-isns/security.h	2011-09-01 20:31:39.000000000 -0500
Mike Christie 3949e1
@@ -6,11 +6,16 @@
Mike Christie 3949e1
 
Mike Christie 3949e1
 #ifndef ISNS_SECURITY_H
Mike Christie 3949e1
 #define ISNS_SECURITY_H
Mike Christie 3949e1
-
Mike Christie 3949e1
-#include <openssl evp.h="">
Mike Christie 3949e1
 #include "buffer.h"
Mike Christie 3949e1
 #include "util.h"
Mike Christie 3949e1
 
Mike Christie 3949e1
+
Mike Christie 3949e1
+#ifdef WITH_SECURITY
Mike Christie 3949e1
+#include <openssl evp.h="">
Mike Christie 3949e1
+#else
Mike Christie 3949e1
+#define EVP_PKEY void
Mike Christie 3949e1
+#endif
Mike Christie 3949e1
+
Mike Christie 3949e1
 /*
Mike Christie 3949e1
  * Security context
Mike Christie 3949e1
  */
Mike Christie 3949e1
diff -aurp open-iscsi-2.0-872-rc4-bnx2i/utils/open-isns/util.h open-iscsi-2.0-872-rc4-bnx2i.build/utils/open-isns/util.h
Mike Christie 3949e1
--- open-iscsi-2.0-872-rc4-bnx2i/utils/open-isns/util.h	2011-09-01 20:28:53.000000000 -0500
Mike Christie 3949e1
+++ open-iscsi-2.0-872-rc4-bnx2i.build/utils/open-isns/util.h	2011-09-01 20:31:39.000000000 -0500
Mike Christie 3949e1
@@ -9,6 +9,7 @@
Mike Christie 3949e1
 
Mike Christie 3949e1
 #include <sys types.h="">
Mike Christie 3949e1
 #include <stdint.h>
Mike Christie 3949e1
+#include <stdlib.h>
Mike Christie 3949e1
 #include <stdio.h>
Mike Christie 3949e1
 #include <stddef.h>
Mike Christie 3949e1
 #include <string.h>	// for strdup