Fix myTeamSpeak sign-in for accounts with add-on items
The server returns every item class the account holds, not only the requested ones, and add-on items come unencrypted. Decrypting them failed the integrity check and aborted the whole import. Only decrypt the classes that were asked for. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -68,10 +68,16 @@ class MyTeamSpeakTest {
|
||||
.string(2, "5d831e3c-d5aa-0e66-7af2-a0feb13af048")
|
||||
.bytes(3, MyTsCryptoTest.itemFrame());
|
||||
ProtobufWriter tombstone = new ProtobufWriter().string(1, "gone").varint(4, 1);
|
||||
// Sent though not asked for, and in the clear.
|
||||
ProtobufWriter addOn = new ProtobufWriter()
|
||||
.string(1, "38aa56e2-55ae-b37a-a7db-7a11832a9812")
|
||||
.bytes(3, new ProtobufWriter().string(2, "38aa56e2-55ae-b37a-a7db-7a11832a9812")
|
||||
.varint(6, 4).toByteArray());
|
||||
return new ProtobufWriter()
|
||||
.varint(1, 301)
|
||||
.message(2, new ProtobufWriter().varint(1, 0).string(2, "v").message(3, bookmark).message(3, tombstone))
|
||||
.message(2, new ProtobufWriter().varint(1, 1).varint(4, 1))
|
||||
.message(2, new ProtobufWriter().varint(1, 4).string(2, "v").message(3, addOn))
|
||||
.string(3, "g")
|
||||
.toByteArray();
|
||||
} catch (java.security.GeneralSecurityException e) {
|
||||
|
||||
Reference in New Issue
Block a user