Skip to content

Commit 98c05e6

Browse files
authored
Upload device keys to enable uploading OTKs (#834)
For servers that verify the OTKs are indeed signed by the device key.
1 parent 6c8041b commit 98c05e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/csapi/upload_keys_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,11 @@ func TestKeyClaimOrdering(t *testing.T) {
180180
deployment := complement.Deploy(t, 1)
181181
defer deployment.Destroy(t)
182182
alice := deployment.Register(t, "hs1", helpers.RegistrationOpts{})
183-
_, oneTimeKeys := alice.MustGenerateOneTimeKeys(t, 2)
183+
deviceKeys, oneTimeKeys := alice.MustGenerateOneTimeKeys(t, 2)
184184

185185
// first upload key 1, sleep a bit, then upload key 0.
186186
otk1 := map[string]interface{}{"signed_curve25519:1": oneTimeKeys["signed_curve25519:1"]}
187-
alice.MustUploadKeys(t, nil, otk1)
187+
alice.MustUploadKeys(t, deviceKeys, otk1)
188188
// Ensure that there is a difference in timestamp between the two upload requests.
189189
time.Sleep(1 * time.Second)
190190

0 commit comments

Comments
 (0)