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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user