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 aa5f277..0ec09a7 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;
+                               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;
Impressum, Datenschutz