[Pkg-iscsi-maintainers] [SCM] Debian Open-iSCSI Packaging branch, upstream-mnc, updated. 2.0-872-193-gde2c0e7

Mike Christie michaelc at cs.wisc.edu
Sat Apr 7 15:43:50 UTC 2012


The following commit has been merged in the upstream-mnc branch:
commit 8a16639359c770b56dfe54a63cf93e0271ac9e57
Author: Mike Christie <michaelc at cs.wisc.edu>
Date:   Thu Sep 1 20:16:26 2011 -0500

    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.

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

-- 
Debian Open-iSCSI Packaging



More information about the Pkg-iscsi-maintainers mailing list