print the lengths when they don't match.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17501 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-05-07 11:57:22 +00:00
parent 7214c1cc3b
commit 59641f933c

View File

@@ -160,7 +160,7 @@ main(int argc, char **argv)
errx(1, "failed to public decrypt"); errx(1, "failed to public decrypt");
if (keylen != 7) if (keylen != 7)
errx(1, "output buffer not same length"); errx(1, "output buffer not same length: %d", (int)keylen);
if (memcmp(buf, "hejsan", 7) != 0) if (memcmp(buf, "hejsan", 7) != 0)
errx(1, "string not the same after decryption"); errx(1, "string not the same after decryption");
@@ -179,7 +179,7 @@ main(int argc, char **argv)
errx(1, "failed to private decrypt"); errx(1, "failed to private decrypt");
if (keylen != 7) if (keylen != 7)
errx(1, "output buffer not same length"); errx(1, "output buffer not same length: %d", (int)keylen);
if (memcmp(buf, "hejsan", 7) != 0) if (memcmp(buf, "hejsan", 7) != 0)
errx(1, "string not the same after decryption"); errx(1, "string not the same after decryption");