diff options
| author | Ken Raeburn <raeburn@mit.edu> | 2007-05-10 02:45:42 +0000 |
|---|---|---|
| committer | Ken Raeburn <raeburn@mit.edu> | 2007-05-10 02:45:42 +0000 |
| commit | 4263a29d33db110dc829b136b1e4e1317c0f4bab (patch) | |
| tree | 90bee45b7d6c13b41c70a7cd95c316e7ec5f64ed /src | |
| parent | 86ef9dd0422b95ccf2b29f18847c47b6b9e2e6c5 (diff) | |
| download | krb5-4263a29d33db110dc829b136b1e4e1317c0f4bab.tar.gz krb5-4263a29d33db110dc829b136b1e4e1317c0f4bab.tar.xz krb5-4263a29d33db110dc829b136b1e4e1317c0f4bab.zip | |
Use new comparison inline fn
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19545 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/crypto/t_cts.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/crypto/t_cts.c b/src/lib/crypto/t_cts.c index 5066a26df6..aef813273f 100644 --- a/src/lib/crypto/t_cts.c +++ b/src/lib/crypto/t_cts.c @@ -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); } |
