summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2011-09-01 20:16:26 -0500
committerMike Christie <michaelc@cs.wisc.edu>2011-09-01 20:18:31 -0500
commit8a16639359c770b56dfe54a63cf93e0271ac9e57 (patch)
tree5139ac9991347e2c5edd8d102b6cf0f8ae774bbe /utils
parent2d2dee7194936a7229a948dd05838ebd1ee51a1b (diff)
downloadopen-iscsi-8a16639359c770b56dfe54a63cf93e0271ac9e57.tar.gz
iscsi tools: don't build with openssl
We were still trying to bring in some openssl headers for isns even though we are not using that code. This adds some ugly ifdef code around it so we do not need openssl at all.
Diffstat (limited to 'utils')
-rw-r--r--utils/open-isns/db-policy.c2
-rw-r--r--utils/open-isns/security.h9
-rw-r--r--utils/open-isns/util.h1
3 files changed, 10 insertions, 2 deletions
diff --git a/utils/open-isns/db-policy.c b/utils/open-isns/db-policy.c
index 7f09cba..a85a436 100644
--- a/utils/open-isns/db-policy.c
+++ b/utils/open-isns/db-policy.c
@@ -7,8 +7,10 @@
#include <sys/stat.h>
#include <string.h>
#include <unistd.h>
+#ifdef WITH_SECURITY
#include <openssl/pem.h>
#include <openssl/err.h>
+#endif
#include "isns.h"
#include "security.h"
#include "objects.h"
diff --git a/utils/open-isns/security.h b/utils/open-isns/security.h
index 9ba0f0d..4b928ff 100644
--- a/utils/open-isns/security.h
+++ b/utils/open-isns/security.h
@@ -6,11 +6,16 @@
#ifndef ISNS_SECURITY_H
#define ISNS_SECURITY_H
-
-#include <openssl/evp.h>
#include "buffer.h"
#include "util.h"
+
+#ifdef WITH_SECURITY
+#include <openssl/evp.h>
+#else
+#define EVP_PKEY void
+#endif
+
/*
* Security context
*/
diff --git a/utils/open-isns/util.h b/utils/open-isns/util.h
index bd6b979..deecb24 100644
--- a/utils/open-isns/util.h
+++ b/utils/open-isns/util.h
@@ -9,6 +9,7 @@
#include <sys/types.h>
#include <stdint.h>
+#include <stdlib.h>
#include <stdio.h>
#include <stddef.h>
#include <string.h> // for strdup