Use new comparison inline fn
authorKen Raeburn <raeburn@mit.edu>
Thu, 10 May 2007 02:45:42 +0000 (02:45 +0000)
committerKen Raeburn <raeburn@mit.edu>
Thu, 10 May 2007 02:45:42 +0000 (02:45 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19545 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/t_cts.c

index 5066a26df6688e2c04ac7670fe4d879e538b81f1..aef813273f4ef20d853a7b2e6c52ba74124da2e9 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * lib/crypto/vectors.c
  *
- * Copyright 2001 by the Massachusetts Institute of Technology.
+ * Copyright 2001, 2007 by the Massachusetts Institute of Technology.
  * All Rights Reserved.
  *
  * Export of this software from the United States of America may
@@ -157,8 +157,7 @@ static void test_cts()
            printf("error %ld from krb5int_aes_decrypt\n", (long)err);
            exit(1);
        }
-       if (out2.length != in.length
-           || memcmp(in.data, out2.data, in.length)) {
+       if (!data_eq(out2, in)) {
            printd("Decryption result DOESN'T MATCH", &out2);
            exit(1);
        }