Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions zz_compat_wss_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ import (
// types in the wss server — we duplicate them here so this test can
// drive the WSS bridge without importing the internal daemon client.
type authChallengeMsg struct {
Type string `json:"type"`
Nonce string `json:"nonce"`
Type string `json:"type"`
Nonce string `json:"nonce"`
Timestamp int64 `json:"ts"`
}

type authReplyMsg struct {
Expand Down Expand Up @@ -69,7 +70,7 @@ func dialCompatWSS(t *testing.T, addr string, id *crypto.Identity, nodeID uint32
}

// 2. Sign and reply.
signed := []byte(fmt.Sprintf("compat_auth:%d:%s", nodeID, ch.Nonce))
signed := []byte(fmt.Sprintf("compat_auth:%d:%d:%s", nodeID, ch.Timestamp, ch.Nonce))
sig := id.Sign(signed)
reply := authReplyMsg{
Type: "auth_reply",
Expand Down
Loading