]> git.zerfleddert.de Git - hmcfgusb/commitdiff
setting an AES encryption key (Y) needs a length-byte
authorMichael Gernoth <michael@gernoth.net>
Wed, 10 Jul 2013 13:13:08 +0000 (15:13 +0200)
committerMichael Gernoth <michael@gernoth.net>
Wed, 10 Jul 2013 13:13:08 +0000 (15:13 +0200)
hmland.c

index aa5f27737045bf22f1ac1ba60142dae6a501e112..0ec09a7d792ad033170b119177f2222a6484afc5 100644 (file)
--- a/hmland.c
+++ b/hmland.c
@@ -307,6 +307,10 @@ static int hmlan_parse_in(int fd, void *data)
                                        parse_part_in(&inpos, (last-(inpos-instart)), &outpos, (sizeof(out)-(outpos-out)), 0);
                                        parse_part_in(&inpos, (last-(inpos-instart)), &outpos, (sizeof(out)-(outpos-out)), FLAG_LENGTH_BYTE);
                                        break;
                                        parse_part_in(&inpos, (last-(inpos-instart)), &outpos, (sizeof(out)-(outpos-out)), 0);
                                        parse_part_in(&inpos, (last-(inpos-instart)), &outpos, (sizeof(out)-(outpos-out)), FLAG_LENGTH_BYTE);
                                        break;
+                               case 'Y':
+                                       parse_part_in(&inpos, (last-(inpos-instart)), &outpos, (sizeof(out)-(outpos-out)), 0);
+                                       parse_part_in(&inpos, (last-(inpos-instart)), &outpos, (sizeof(out)-(outpos-out)), 0);
+                                       parse_part_in(&inpos, (last-(inpos-instart)), &outpos, (sizeof(out)-(outpos-out)), FLAG_LENGTH_BYTE);
                                default:
                                        parse_part_in(&inpos, (last-(inpos-instart)), &outpos, (sizeof(out)-(outpos-out)), FLAG_IGNORE_COMMAS);
                                        break;
                                default:
                                        parse_part_in(&inpos, (last-(inpos-instart)), &outpos, (sizeof(out)-(outpos-out)), FLAG_IGNORE_COMMAS);
                                        break;
Impressum, Datenschutz