summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-06-15 12:01:09 +0200
committerGünther Deschner <gd@samba.org>2010-06-16 18:58:04 +0200
commitaa76e8263d5aaa12a19b1c351ac8ec8f0e7a9002 (patch)
tree676ce10885aec81c8cebe3f2f35339cdf8632681
parent65ca3e4ee985689cdb038ae366f57d523cbeb964 (diff)
downloadsamba-aa76e8263d5aaa12a19b1c351ac8ec8f0e7a9002.tar.gz
samba-aa76e8263d5aaa12a19b1c351ac8ec8f0e7a9002.tar.bz2
samba-aa76e8263d5aaa12a19b1c351ac8ec8f0e7a9002.zip
lib/crypto: only include what is needed.
Guenther
-rw-r--r--lib/crypto/arcfour.c2
-rw-r--r--lib/crypto/arcfour.h2
-rw-r--r--lib/crypto/crc32.c2
-rw-r--r--lib/crypto/hmacmd5.c2
-rw-r--r--lib/crypto/hmacmd5test.c3
-rw-r--r--lib/crypto/hmacsha256.c2
-rw-r--r--lib/crypto/md4.c2
-rw-r--r--lib/crypto/md4test.c3
-rw-r--r--lib/crypto/md5.c2
-rw-r--r--lib/crypto/md5test.c3
-rw-r--r--lib/crypto/sha256.c2
11 files changed, 15 insertions, 10 deletions
diff --git a/lib/crypto/arcfour.c b/lib/crypto/arcfour.c
index c57e05d0e9..1afd659be6 100644
--- a/lib/crypto/arcfour.c
+++ b/lib/crypto/arcfour.c
@@ -19,7 +19,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "includes.h"
+#include "replace.h"
#include "../lib/crypto/arcfour.h"
/* initialise the arcfour sbox with key */
diff --git a/lib/crypto/arcfour.h b/lib/crypto/arcfour.h
index 501b3f2fab..a9f80c474d 100644
--- a/lib/crypto/arcfour.h
+++ b/lib/crypto/arcfour.h
@@ -1,6 +1,8 @@
#ifndef ARCFOUR_HEADER_H
#define ARCFOUR_HEADER_H
+#include "../lib/util/data_blob.h"
+
struct arcfour_state {
uint8_t sbox[256];
uint8_t index_i;
diff --git a/lib/crypto/crc32.c b/lib/crypto/crc32.c
index e6cc529767..cca62a0c04 100644
--- a/lib/crypto/crc32.c
+++ b/lib/crypto/crc32.c
@@ -40,7 +40,7 @@
* CRC32 code derived from work by Gary S. Brown.
*/
-#include "includes.h"
+#include "replace.h"
#include "../lib/crypto/crc32.h"
static const uint32_t crc32_tab[] = {
diff --git a/lib/crypto/hmacmd5.c b/lib/crypto/hmacmd5.c
index 0c8d1ab598..cfbd428014 100644
--- a/lib/crypto/hmacmd5.c
+++ b/lib/crypto/hmacmd5.c
@@ -22,7 +22,7 @@
* for ntlmv2.
*/
-#include "includes.h"
+#include "replace.h"
#include "../lib/crypto/hmacmd5.h"
/***********************************************************************
diff --git a/lib/crypto/hmacmd5test.c b/lib/crypto/hmacmd5test.c
index 77f305a5d3..a6621a6e13 100644
--- a/lib/crypto/hmacmd5test.c
+++ b/lib/crypto/hmacmd5test.c
@@ -16,7 +16,8 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "includes.h"
+#include "replace.h"
+#include "../lib/util/util.h"
#include "../lib/crypto/crypto.h"
struct torture_context;
diff --git a/lib/crypto/hmacsha256.c b/lib/crypto/hmacsha256.c
index 53d4fe3883..1a31441297 100644
--- a/lib/crypto/hmacsha256.c
+++ b/lib/crypto/hmacsha256.c
@@ -26,7 +26,7 @@
taken direct from rfc2202 implementation and modified for suitable use
*/
-#include "includes.h"
+#include "replace.h"
#include "../lib/crypto/crypto.h"
/***********************************************************************
diff --git a/lib/crypto/md4.c b/lib/crypto/md4.c
index aea2c821c5..7eb6070cd4 100644
--- a/lib/crypto/md4.c
+++ b/lib/crypto/md4.c
@@ -17,7 +17,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "includes.h"
+#include "replace.h"
#include "../lib/crypto/md4.h"
/* NOTE: This code makes no attempt to be fast!
diff --git a/lib/crypto/md4test.c b/lib/crypto/md4test.c
index a6080cff82..e406c692a1 100644
--- a/lib/crypto/md4test.c
+++ b/lib/crypto/md4test.c
@@ -17,7 +17,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "includes.h"
+#include "replace.h"
+#include "../lib/util/util.h"
#include "../lib/crypto/crypto.h"
struct torture_context;
diff --git a/lib/crypto/md5.c b/lib/crypto/md5.c
index 566aacaf28..e6178cc015 100644
--- a/lib/crypto/md5.c
+++ b/lib/crypto/md5.c
@@ -18,7 +18,7 @@
/* This code slightly modified to fit into Samba by
abartlet@samba.org Jun 2001 */
-#include "includes.h"
+#include "replace.h"
#include "md5.h"
diff --git a/lib/crypto/md5test.c b/lib/crypto/md5test.c
index 7223af2114..0457d4d4ea 100644
--- a/lib/crypto/md5test.c
+++ b/lib/crypto/md5test.c
@@ -17,7 +17,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "includes.h"
+#include "replace.h"
+#include "../lib/util/util.h"
#include "../lib/crypto/crypto.h"
struct torture_context;
diff --git a/lib/crypto/sha256.c b/lib/crypto/sha256.c
index 233abe23f8..42ab2363aa 100644
--- a/lib/crypto/sha256.c
+++ b/lib/crypto/sha256.c
@@ -38,7 +38,7 @@
* SUCH DAMAGE.
*/
-#include "includes.h"
+#include "replace.h"
#include "sha256.h"
#define Ch(x,y,z) (((x) & (y)) ^ ((~(x)) & (z)))