parent
5a4c6809d2
commit
0a9fa8920f
@ -0,0 +1,11 @@
|
|||||||
|
diff -up ykpers-1.4.1/tests/test_args_to_config.c.bigendian ykpers-1.4.1/tests/test_args_to_config.c
|
||||||
|
--- ykpers-1.4.1/tests/test_args_to_config.c.bigendian 2011-04-29 17:09:24.000000000 +0200
|
||||||
|
+++ ykpers-1.4.1/tests/test_args_to_config.c 2011-04-29 17:09:37.000000000 +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) {
|
@ -0,0 +1,12 @@
|
|||||||
|
diff -up ykpers-1.4.1/ykpersonalize.c.getopt ykpers-1.4.1/ykpersonalize.c
|
||||||
|
--- ykpers-1.4.1/ykpersonalize.c.getopt 2011-04-29 16:05:30.000000000 +0200
|
||||||
|
+++ ykpers-1.4.1/ykpersonalize.c 2011-04-29 16:05:45.000000000 +0200
|
||||||
|
@@ -205,7 +205,7 @@ int args_to_config(int argc, char **argv
|
||||||
|
bool *aesviahash,
|
||||||
|
int *exit_code)
|
||||||
|
{
|
||||||
|
- char c;
|
||||||
|
+ int c;
|
||||||
|
const char *aeshash = NULL;
|
||||||
|
bool new_access_code = false;
|
||||||
|
bool slot_chosen = false;
|
Loading…
Reference in new issue