summaryrefslogtreecommitdiff
path: root/source4/lib/crypto
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-10-05 18:03:01 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:07:47 -0500
commit719a4ae0d32ab9ba817fd01f2b8f4cba220a8c60 (patch)
tree5235b8d927cdb765432398df1af8ce9ca9ddf4bf /source4/lib/crypto
parent42bdfc3f6ce61fcd4f0d31c48dee470b62a9d59b (diff)
downloadsamba-719a4ae0d32ab9ba817fd01f2b8f4cba220a8c60.tar.gz
samba-719a4ae0d32ab9ba817fd01f2b8f4cba220a8c60.tar.bz2
samba-719a4ae0d32ab9ba817fd01f2b8f4cba220a8c60.zip
r25522: Convert to standard bool types.
(This used to be commit 5e814287ba475e12f8cc934fdd09b199dcdfdb86)
Diffstat (limited to 'source4/lib/crypto')
-rw-r--r--source4/lib/crypto/hmacmd5test.c6
-rw-r--r--source4/lib/crypto/hmacsha1test.c6
-rw-r--r--source4/lib/crypto/md4test.c6
-rw-r--r--source4/lib/crypto/md5test.c6
-rw-r--r--source4/lib/crypto/sha1test.c4
5 files changed, 14 insertions, 14 deletions
diff --git a/source4/lib/crypto/hmacmd5test.c b/source4/lib/crypto/hmacmd5test.c
index 3e277a9232..07ed54c98d 100644
--- a/source4/lib/crypto/hmacmd5test.c
+++ b/source4/lib/crypto/hmacmd5test.c
@@ -31,9 +31,9 @@ static DATA_BLOB data_blob_repeat_byte(uint8_t byte, size_t length)
/*
This uses the test values from rfc 2104, 2202
*/
-BOOL torture_local_crypto_hmacmd5(struct torture_context *torture)
+bool torture_local_crypto_hmacmd5(struct torture_context *torture)
{
- BOOL ret = True;
+ bool ret = true;
uint32_t i;
struct {
DATA_BLOB key;
@@ -90,7 +90,7 @@ BOOL torture_local_crypto_hmacmd5(struct torture_context *torture)
dump_data(0, testarray[i].data.data, testarray[i].data.length);
dump_data(0, testarray[i].md5.data, testarray[i].md5.length);
dump_data(0, md5, sizeof(md5));
- ret = False;
+ ret = false;
}
}
diff --git a/source4/lib/crypto/hmacsha1test.c b/source4/lib/crypto/hmacsha1test.c
index 9c4662a405..6e53124d21 100644
--- a/source4/lib/crypto/hmacsha1test.c
+++ b/source4/lib/crypto/hmacsha1test.c
@@ -31,9 +31,9 @@ static DATA_BLOB data_blob_repeat_byte(uint8_t byte, size_t length)
/*
This uses the test values from rfc2202
*/
-BOOL torture_local_crypto_hmacsha1(struct torture_context *torture)
+bool torture_local_crypto_hmacsha1(struct torture_context *torture)
{
- BOOL ret = True;
+ bool ret = true;
uint32_t i;
struct {
DATA_BLOB key;
@@ -89,7 +89,7 @@ BOOL torture_local_crypto_hmacsha1(struct torture_context *torture)
dump_data(0, testarray[i].data.data, testarray[i].data.length);
dump_data(0, testarray[i].sha1.data, testarray[i].sha1.length);
dump_data(0, sha1, sizeof(sha1));
- ret = False;
+ ret = false;
}
}
diff --git a/source4/lib/crypto/md4test.c b/source4/lib/crypto/md4test.c
index fa92668f84..5e0451973c 100644
--- a/source4/lib/crypto/md4test.c
+++ b/source4/lib/crypto/md4test.c
@@ -25,9 +25,9 @@ struct torture_context;
/*
This uses the test values from rfc1320
*/
-BOOL torture_local_crypto_md4(struct torture_context *torture)
+bool torture_local_crypto_md4(struct torture_context *torture)
{
- BOOL ret = True;
+ bool ret = true;
uint32_t i;
struct {
const char *data;
@@ -74,7 +74,7 @@ BOOL torture_local_crypto_md4(struct torture_context *torture)
dump_data(0, data.data, data.length);
dump_data(0, md4blob.data, md4blob.length);
dump_data(0, md4, sizeof(md4));
- ret = False;
+ ret = false;
}
talloc_free(md4blob.data);
}
diff --git a/source4/lib/crypto/md5test.c b/source4/lib/crypto/md5test.c
index 12645dc045..702e0fcf41 100644
--- a/source4/lib/crypto/md5test.c
+++ b/source4/lib/crypto/md5test.c
@@ -25,9 +25,9 @@ struct torture_context;
/*
This uses the test values from rfc1321
*/
-BOOL torture_local_crypto_md5(struct torture_context *torture)
+bool torture_local_crypto_md5(struct torture_context *torture)
{
- BOOL ret = True;
+ bool ret = true;
uint32_t i;
struct {
const char *data;
@@ -84,7 +84,7 @@ BOOL torture_local_crypto_md5(struct torture_context *torture)
dump_data(0, data.data, data.length);
dump_data(0, md5blob.data, md5blob.length);
dump_data(0, md5, sizeof(md5));
- ret = False;
+ ret = false;
}
talloc_free(md5blob.data);
}
diff --git a/source4/lib/crypto/sha1test.c b/source4/lib/crypto/sha1test.c
index a37328e328..0e943bd74d 100644
--- a/source4/lib/crypto/sha1test.c
+++ b/source4/lib/crypto/sha1test.c
@@ -57,7 +57,7 @@ bool torture_local_crypto_sha1(struct torture_context *tctx)
struct SHA1Context sha;
int i, j, err;
uint8_t Message_Digest[20];
- BOOL ret = True;
+ bool ret = true;
char tmp[60 + 10];
/*
@@ -94,7 +94,7 @@ bool torture_local_crypto_sha1(struct torture_context *tctx)
torture_comment(tctx, "\n");
torture_comment(tctx, "Should match:\n\t%s\n", resultarray[j]);
if (strcmp(resultarray[j], tmp) != 0) {
- ret = False;
+ ret = false;
}
}