You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
598 B
12 lines
598 B
14 years ago
|
diff -up ykpers-1.6.0/tests/test_args_to_config.c.bigendian ykpers-1.6.0/tests/test_args_to_config.c
|
||
|
--- ykpers-1.6.0/tests/test_args_to_config.c.bigendian 2011-07-21 11:27:59.614946704 +0200
|
||
|
+++ ykpers-1.6.0/tests/test_args_to_config.c 2011-07-21 11:28:52.805128364 +0200
|
||
|
@@ -86,6 +86,7 @@ void _check_success(int rc, YKP_CONFIG *
|
||
|
/* insert CRC */
|
||
|
ycfg->crc = ~yubikey_crc16 ((unsigned char *) ycfg,
|
||
|
offsetof(struct config_st, crc));
|
||
|
+ ycfg->crc = yk_endian_swap_16(ycfg->crc);
|
||
|
|
||
|
config_matches_expected = ! memcmp(expected, ycfg, sizeof(*ycfg));
|
||
|
if (! config_matches_expected) {
|