Check that the pre-wrapped data is the same as afterward.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18174 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-09-25 22:33:39 +00:00
parent 839c8fba02
commit 3cf6b97bbf

View File

@@ -398,6 +398,12 @@ test_wrap(struct client *c1, int32_t hc1, struct client *c2, int32_t hc2,
if (val)
errx(1, "unwrap_token failed to host: %s", c2->moniker);
if (msg.length != out.length)
errx(1, "unwrap'ed token have wrong length");
if (memcmp(msg.data, out.data, msg.length) != 0)
errx(1, "unwrap'ed token have wrong data");
krb5_data_free(&wrapped);
krb5_data_free(&out);
}