Skip to content

Commit

Permalink
Start pion/srtp/v3
Browse files Browse the repository at this point in the history
pion/transport/v3 has a breaking change in ReplayDetector
  • Loading branch information
Sean-Der committed Sep 4, 2023
1 parent ff2885d commit 051ad2a
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package srtp
import (
"fmt"

"github.com/pion/transport/v2/replaydetector"
"github.com/pion/transport/v3/replaydetector"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion crypto.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package srtp
import (
"crypto/cipher"

"github.com/pion/transport/v2/utils/xor"
"github.com/pion/transport/v3/utils/xor"
)

// incrementCTR increments a big-endian integer of arbitrary size.
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module github.com/pion/srtp/v2
module github.com/pion/srtp/v3

go 1.14

require (
github.com/pion/logging v0.2.2
github.com/pion/rtcp v1.2.10
github.com/pion/rtp v1.8.1
github.com/pion/transport/v2 v2.2.3
github.com/pion/transport/v3 v3.0.1
github.com/stretchr/testify v1.8.4
)
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ github.com/pion/rtcp v1.2.10 h1:nkr3uj+8Sp97zyItdN60tE/S6vk4al5CPRR6Gejsdjc=
github.com/pion/rtcp v1.2.10/go.mod h1:ztfEwXZNLGyF1oQDttz/ZKIBaeeg/oWbRYqzBM9TL1I=
github.com/pion/rtp v1.8.1 h1:26OxTc6lKg/qLSGir5agLyj0QKaOv8OP5wps2SFnVNQ=
github.com/pion/rtp v1.8.1/go.mod h1:pBGHaFt/yW7bf1jjWAoUjpSNoDnw98KTMg+jWWvziqU=
github.com/pion/transport/v2 v2.2.3 h1:XcOE3/x41HOSKbl1BfyY1TF1dERx7lVvlMCbXU7kfvA=
github.com/pion/transport/v2 v2.2.3/go.mod h1:q2U/tf9FEfnSBGSW6w5Qp5PFWRLRj3NjLhCCgpRK4p0=
github.com/pion/transport/v3 v3.0.1 h1:gDTlPJwROfSfz6QfSi0ZmeCSkFcnWWiiR9ES0ouANiM=
github.com/pion/transport/v3 v3.0.1/go.mod h1:UY7kiITrlMv7/IKgd5eTUcaahZx5oUN3l9SzK5f5xE0=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
Expand Down
6 changes: 3 additions & 3 deletions option.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package srtp

import (
"github.com/pion/transport/v2/replaydetector"
"github.com/pion/transport/v3/replaydetector"
)

// ContextOption represents option of Context using the functional options pattern.
Expand Down Expand Up @@ -68,6 +68,6 @@ func SRTCPReplayDetectorFactory(fn func() replaydetector.ReplayDetector) Context

type nopReplayDetector struct{}

func (s *nopReplayDetector) Check(uint64) (func(), bool) {
return func() {}, true
func (s *nopReplayDetector) Check(uint64) (func() bool, bool) {
return func() bool { return true }, true
}
2 changes: 1 addition & 1 deletion session.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"time"

"github.com/pion/logging"
"github.com/pion/transport/v2/packetio"
"github.com/pion/transport/v3/packetio"
)

type streamSession interface {
Expand Down
2 changes: 1 addition & 1 deletion session_srtcp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"time"

"github.com/pion/rtcp"
"github.com/pion/transport/v2/test"
"github.com/pion/transport/v3/test"
)

const rtcpHeaderSize = 4
Expand Down
2 changes: 1 addition & 1 deletion session_srtp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"time"

"github.com/pion/rtp"
"github.com/pion/transport/v2/test"
"github.com/pion/transport/v3/test"
)

func TestSessionSRTPBadInit(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion srtcp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"testing"

"github.com/pion/rtcp"
"github.com/pion/transport/v2/replaydetector"
"github.com/pion/transport/v3/replaydetector"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion srtp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"testing"

"github.com/pion/rtp"
"github.com/pion/transport/v2/replaydetector"
"github.com/pion/transport/v3/replaydetector"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion stream_srtcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"time"

"github.com/pion/rtcp"
"github.com/pion/transport/v2/packetio"
"github.com/pion/transport/v3/packetio"
)

// Limit the buffer size to 100KB
Expand Down
2 changes: 1 addition & 1 deletion stream_srtp.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"time"

"github.com/pion/rtp"
"github.com/pion/transport/v2/packetio"
"github.com/pion/transport/v3/packetio"
)

// Limit the buffer size to 1MB
Expand Down
2 changes: 1 addition & 1 deletion stream_srtp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"time"

"github.com/pion/rtp"
"github.com/pion/transport/v2/packetio"
"github.com/pion/transport/v3/packetio"
"github.com/stretchr/testify/assert"
)

Expand Down

0 comments on commit 051ad2a

Please sign in to comment.