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:
@@ -160,7 +160,7 @@ main(int argc, char **argv)
|
||||
errx(1, "failed to public decrypt");
|
||||
|
||||
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)
|
||||
errx(1, "string not the same after decryption");
|
||||
@@ -179,7 +179,7 @@ main(int argc, char **argv)
|
||||
errx(1, "failed to private decrypt");
|
||||
|
||||
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)
|
||||
errx(1, "string not the same after decryption");
|
||||
|
Reference in New Issue
Block a user