summaryrefslogtreecommitdiff
path: root/unit/test-prf-sha1.c
diff options
context:
space:
mode:
Diffstat (limited to 'unit/test-prf-sha1.c')
-rw-r--r--unit/test-prf-sha1.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/unit/test-prf-sha1.c b/unit/test-prf-sha1.c
index 5f81f4c4..c6a3787d 100644
--- a/unit/test-prf-sha1.c
+++ b/unit/test-prf-sha1.c
@@ -51,9 +51,8 @@ static void prf_test(gconstpointer data)
prf_len = strlen(test->prf) / 2;
- if (g_test_verbose() == TRUE) {
+ if (g_test_verbose())
g_print("PRF = %s (%d octects)\n", test->prf, prf_len);
- }
result = prf_sha1(test->key, test->key_len, test->prefix,
test->prefix_len, test->data, test->data_len,
@@ -64,9 +63,8 @@ static void prf_test(gconstpointer data)
for (i = 0; i < prf_len; i++)
sprintf(prf + (i * 2), "%02x", output[i]);
- if (g_test_verbose() == TRUE) {
+ if (g_test_verbose())
g_print("Result = %s\n", prf);
- }
g_assert(strcmp(test->prf, prf) == 0);
}