Skip to content

Commit

Permalink
signalmeow: update protobufs
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Dec 2, 2024
1 parent 958aa33 commit 39116d9
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 35 deletions.
32 changes: 16 additions & 16 deletions pkg/signalmeow/protobuf/Provisioning.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified pkg/signalmeow/protobuf/Provisioning.pb.raw
Binary file not shown.
4 changes: 2 additions & 2 deletions pkg/signalmeow/protobuf/Provisioning.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ package signalservice;
option java_package = "org.whispersystems.signalservice.internal.push";
option java_outer_classname = "ProvisioningProtos";

message ProvisioningUuid {
optional string uuid = 1;
message ProvisioningAddress {
optional string address = 1;
}

message ProvisionEnvelope {
Expand Down
7 changes: 4 additions & 3 deletions pkg/signalmeow/protobuf/SignalService.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions pkg/signalmeow/protobuf/SignalService.proto
Original file line number Diff line number Diff line change
Expand Up @@ -546,9 +546,10 @@ message SyncMessage {
message Keys {
// @deprecated
optional bytes storageService = 1;
optional bytes master = 2;
optional string accountEntropyPool = 3; // Copied manually from Signal Desktop
optional bytes mediaRootBackupKey = 4; // Copied manually from Signal Desktop
// @deprecated
optional bytes master = 2;
optional string accountEntropyPool = 3;
optional bytes mediaRootBackupKey = 4;
}

message MessageRequestResponse {
Expand Down
5 changes: 2 additions & 3 deletions pkg/signalmeow/protobuf/StorageService.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified pkg/signalmeow/protobuf/StorageService.pb.raw
Binary file not shown.
5 changes: 2 additions & 3 deletions pkg/signalmeow/protobuf/StorageService.proto
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,8 @@ message ManifestRecord {
uint64 version = 1;
uint32 sourceDevice = 3;
repeated Identifier identifiers = 2;
// Next ID: 4

optional bytes recordIkm = 4; // Copied manually from Signal Desktop
bytes recordIkm = 4;
// Next ID: 5
}

message StorageRecord {
Expand Down
4 changes: 2 additions & 2 deletions pkg/signalmeow/protobuf/update-protos.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash
set -euo pipefail

ANDROID_GIT_REVISION=${1:-aad2624bd551c122a8938c12fe2d2240c950b8f4}
DESKTOP_GIT_REVISION=${1:-ac09a508f1085c58afdeb6c758ccb22ab8ed8e51}
ANDROID_GIT_REVISION=${1:-f5a68aa7aeccba3efba71e9868475a2483c5fa28}
DESKTOP_GIT_REVISION=${1:-5d899d740b236491d8cad6fe187bb9806ff95ccf}

update_proto() {
case "$1" in
Expand Down
7 changes: 4 additions & 3 deletions pkg/signalmeow/provisioning.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ func startProvisioning(ctx context.Context, ws *websocket.Conn, provisioningCiph
return "", fmt.Errorf("unexpected websocket message: %v", msg)
}

var provisioningBody signalpb.ProvisioningUuid
var provisioningBody signalpb.ProvisioningAddress
err = proto.Unmarshal(msg.GetRequest().GetBody(), &provisioningBody)
if err != nil {
return "", fmt.Errorf("failed to unmarshal provisioning UUID: %w", err)
Expand All @@ -289,8 +289,9 @@ func startProvisioning(ctx context.Context, ws *websocket.Conn, provisioningCiph
Scheme: "sgnl",
Host: "linkdevice",
RawQuery: url.Values{
"uuid": []string{provisioningBody.GetUuid()},
"pub_key": []string{base64.StdEncoding.EncodeToString(exerrors.Must(pubKey.Serialize()))},
"uuid": []string{provisioningBody.GetAddress()},
"pub_key": []string{base64.StdEncoding.EncodeToString(exerrors.Must(pubKey.Serialize()))},
"capabilities": []string{""}, // Will contain "backup" in the future
}.Encode(),
}).String()

Expand Down

0 comments on commit 39116d9

Please sign in to comment.