Skip to content

Commit e33128e

Browse files
committed
Fix LTC_COMPARE_TESTVECTOR()
Fixes: 6daff83 ("Deprecate `compare_testvector()`.") Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
1 parent 709572e commit e33128e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/headers/tomcrypt_private.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -396,12 +396,12 @@ void password_free(struct password *pw, const struct password_ctx *ctx);
396396
int ltc_compare_testvector(const void* is, const unsigned long is_len, const void* should, const unsigned long should_len, const char* what, int which);
397397
int ltc_do_compare_testvector(const void* is, const unsigned long is_len, const void* should, const unsigned long should_len, const char* what, int which);
398398

399-
#define LTC_COMPARE_TESTVECTOR(i, il, s, sl, wa, wi) \
400-
do { \
401-
int LTC_TMPVAR(ret) = do_compare_testvector((i), (il), (s), (sl), (wa), (wi)); \
402-
if (LTC_TMPVAR(ret) != CRYPT_OK) { \
403-
return LTC_TMPVAR(ret); \
404-
} \
399+
#define LTC_COMPARE_TESTVECTOR(i, il, s, sl, wa, wi) \
400+
do { \
401+
int LTC_TMPVAR(ret) = ltc_do_compare_testvector((i), (il), (s), (sl), (wa), (wi)); \
402+
if (LTC_TMPVAR(ret) != CRYPT_OK) { \
403+
return LTC_TMPVAR(ret); \
404+
} \
405405
} while(0)
406406

407407
#if defined(LTC_PBES)

0 commit comments

Comments
 (0)