mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-24 02:25:19 +00:00
0dd36c64a4
1) Move the attachment structures into the encrypted message body. 2) Encrypt attachments with symmetric keys transmitted in the encryptd attachment pointer structure. 3) Correctly handle asynchronous decryption and categorization of encrypted push messages. TODO: Correct notification process and network/interruption retries.
24 lines
615 B
Protocol Buffer
24 lines
615 B
Protocol Buffer
package textsecure;
|
|
|
|
option java_package = "org.whispersystems.textsecure.push";
|
|
option java_outer_classname = "PushMessageProtos";
|
|
|
|
message IncomingPushMessageSignal {
|
|
optional uint32 type = 1;
|
|
optional string source = 2;
|
|
repeated string destinations = 3;
|
|
optional uint64 timestamp = 4;
|
|
optional bytes message = 5; // Contains an encrypted IncomingPushMessageContent
|
|
}
|
|
|
|
message PushMessageContent {
|
|
optional string body = 1;
|
|
|
|
message AttachmentPointer {
|
|
optional fixed64 id = 1;
|
|
optional string contentType = 2;
|
|
optional bytes key = 3;
|
|
}
|
|
|
|
repeated AttachmentPointer attachments = 2;
|
|
} |