summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2013-11-15 15:45:46 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2013-11-27 11:41:43 +0100
commit885d3e2fa7abd153b3847358eceda8f66fd4ca52 (patch)
tree76561094855b4143c3956e1148cdb5d48f29e6f8 /tests
parentb3bb0df8c5a4d24d57c6c49af9d21cc2a4e5d97f (diff)
downloadgnutls-885d3e2fa7abd153b3847358eceda8f66fd4ca52.tar.gz
Ported libgcrypt's AES-based DRBG.
Diffstat (limited to 'tests')
-rw-r--r--tests/fips-test.c8
-rw-r--r--tests/rng-fork.c4
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/fips-test.c b/tests/fips-test.c
index cbe3dbb79f..aa8dfc1aab 100644
--- a/tests/fips-test.c
+++ b/tests/fips-test.c
@@ -20,8 +20,8 @@ static void tls_log_func(int level, const char *str)
fprintf(stderr, "<%d>| %s", level, str);
}
-static char key16[16];
-static char iv16[16];
+static uint8_t key16[16];
+static uint8_t iv16[16];
void doit(void)
{
@@ -135,8 +135,8 @@ int ret;
}
gnutls_global_deinit();
- return 0;
+ return;
#else
- return 1; /* fail. This script shouldn't be called on this case */
+ exit(1); /* fail. This script shouldn't be called on this case */
#endif
}
diff --git a/tests/rng-fork.c b/tests/rng-fork.c
index d2692e2f59..42fc4dbbcb 100644
--- a/tests/rng-fork.c
+++ b/tests/rng-fork.c
@@ -85,12 +85,12 @@ void doit(void)
remove(FILENAME);
if (ret != sizeof(buf1)) {
- fail("error testing the random generator.");
+ fail("error testing the random generator.\n");
return;
}
if (memcmp(buf1, buf2, sizeof(buf1)) == 0) {
- fail("error in the random generator. Produces same valus after fork()");
+ fail("error in the random generator. Produces same valus after fork()\n");
return;
}
if (debug)