aboutsummaryrefslogtreecommitdiffstats
path: root/librecrypt_wipe_str.c
diff options
context:
space:
mode:
Diffstat (limited to 'librecrypt_wipe_str.c')
-rw-r--r--librecrypt_wipe_str.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/librecrypt_wipe_str.c b/librecrypt_wipe_str.c
index 8c31cdc..81f9d54 100644
--- a/librecrypt_wipe_str.c
+++ b/librecrypt_wipe_str.c
@@ -25,13 +25,19 @@ main(void)
{
char buf[64u];
size_t i;
+
SET_UP_ALARM();
+
+ /* Check NULL is supported */
librecrypt_wipe_str(NULL);
+
+ /* Check normal cases */
CHECK("");
CHECK("hello");
CHECK("hello developer");
CHECK(" hello developer ");
CHECK("\1 hello developer \1");
+
return 0;
}