Module Name: src
Committed By: pgoyette
Date: Sat Jan 18 20:10:34 UTC 2014
Modified Files:
src/tests/crypto/opencrypto: h_md5.c
Log Message:
Remove some debugging code.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/crypto/opencrypto/h_md5.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/crypto/opencrypto/h_md5.c
diff -u src/tests/crypto/opencrypto/h_md5.c:1.4 src/tests/crypto/opencrypto/h_md5.c:1.5
--- src/tests/crypto/opencrypto/h_md5.c:1.4 Sat Jan 18 19:44:41 2014
+++ src/tests/crypto/opencrypto/h_md5.c Sat Jan 18 20:10:34 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: h_md5.c,v 1.4 2014/01/18 19:44:41 pgoyette Exp $ */
+/* $NetBSD: h_md5.c,v 1.5 2014/01/18 20:10:34 pgoyette Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -98,16 +98,9 @@ main(void)
if (res < 0)
err(1, "CIOCCRYPT test %zu", i);
- if (memcmp(co.mac, tests[i].digest,
- sizeof(tests[i].digest))) {
- size_t j;
-
- printf(" Idx Actual Golden\n");
- for (j=0; j < sizeof(tests[i].digest); j++)
- printf("0x%02zx: 0x%02x 0x%02x\n",
- j, buf[j], tests[i].digest[j]);
+ if (memcmp(co.mac, tests[i].digest, sizeof(tests[i].digest)))
errx(1, "verification failed test %zu", i);
- }
+
res = ioctl(fd, CIOCFSESSION, &cs.ses);
if (res < 0)
err(1, "CIOCFSESSION test %zu", i);