diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2011-04-04 16:46:23 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2011-04-04 16:46:23 +0000 |
commit | 8a681400dd81bfe2c3ca0d22c587db976ce726ab (patch) | |
tree | da17610a9b6110e16a434b2f4b64bf9333ca0194 /regress | |
parent | 9d592ce754acc004e419049d47e80509af043396 (diff) |
provide fake copies of explicit_bzero in the test scaffolds for kernel code
Diffstat (limited to 'regress')
-rw-r--r-- | regress/sys/crypto/cmac/cmac_test.c | 7 | ||||
-rw-r--r-- | regress/sys/crypto/gmac/gmac_test.c | 8 | ||||
-rw-r--r-- | regress/sys/crypto/hmac/hmac_test.c | 6 | ||||
-rw-r--r-- | regress/sys/crypto/key_wrap/key_wrap_test.c | 6 |
4 files changed, 26 insertions, 1 deletions
diff --git a/regress/sys/crypto/cmac/cmac_test.c b/regress/sys/crypto/cmac/cmac_test.c index b2ffb2a8ac4..78495f0ede4 100644 --- a/regress/sys/crypto/cmac/cmac_test.c +++ b/regress/sys/crypto/cmac/cmac_test.c @@ -18,6 +18,7 @@ #include <crypto/rijndael.h> #include <crypto/cmac.h> #include <stdio.h> +#include <string.h> static void print_hex(char *str, unsigned char *buf, int len) @@ -126,3 +127,9 @@ main(void) return 0; } + +void +explicit_bzero(void *b, size_t len) +{ + bzero(b, len); +} diff --git a/regress/sys/crypto/gmac/gmac_test.c b/regress/sys/crypto/gmac/gmac_test.c index acfa2d3188c..4fe4fca1d0d 100644 --- a/regress/sys/crypto/gmac/gmac_test.c +++ b/regress/sys/crypto/gmac/gmac_test.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gmac_test.c,v 1.1 2010/09/22 12:04:13 mikeb Exp $ */ +/* $OpenBSD: gmac_test.c,v 1.2 2011/04/04 16:46:22 deraadt Exp $ */ /* * Copyright (c) 2010 Mike Belopuhov <mikeb@openbsd.org> @@ -641,3 +641,9 @@ main(void) return (fail > 0 ? 1 : 0); } + +void +explicit_bzero(void *b, size_t len) +{ + bzero(b, len); +} diff --git a/regress/sys/crypto/hmac/hmac_test.c b/regress/sys/crypto/hmac/hmac_test.c index 7a0d34c2883..0af1f6d2ac9 100644 --- a/regress/sys/crypto/hmac/hmac_test.c +++ b/regress/sys/crypto/hmac/hmac_test.c @@ -90,3 +90,9 @@ main(void) return 0; } + +void +explicit_bzero(void *b, size_t len) +{ + bzero(b, len); +} diff --git a/regress/sys/crypto/key_wrap/key_wrap_test.c b/regress/sys/crypto/key_wrap/key_wrap_test.c index 52e34e0bae3..161ed20769b 100644 --- a/regress/sys/crypto/key_wrap/key_wrap_test.c +++ b/regress/sys/crypto/key_wrap/key_wrap_test.c @@ -81,3 +81,9 @@ main(void) return 0; } + +void +explicit_bzero(void *b, size_t len) +{ + bzero(b, len); +} |