Source File
errors.go
Belonging Package
github.com/pion/srtp/v3
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>// SPDX-License-Identifier: MITpackage srtpimport ()var (// ErrFailedToVerifyAuthTag is returned when decryption fails due to invalid authentication tag.ErrFailedToVerifyAuthTag = errors.New("failed to verify auth tag")// ErrMKINotFound is returned when decryption fails due to unknown MKI value in packet.ErrMKINotFound = errors.New("MKI not found")errDuplicated = errors.New("duplicated packet")errShortSrtpMasterKey = errors.New("SRTP master key is not long enough")errShortSrtpMasterSalt = errors.New("SRTP master salt is not long enough")errNoSuchSRTPProfile = errors.New("no such SRTP Profile")errNonZeroKDRNotSupported = errors.New("indexOverKdr > 0 is not supported yet")errExporterWrongLabel = errors.New("exporter called with wrong label")errNoConfig = errors.New("no config provided")errNoConn = errors.New("no conn provided")errTooShortRTP = errors.New("packet is too short to be RTP packet")errTooShortRTCP = errors.New("packet is too short to be RTCP packet")errPayloadDiffers = errors.New("payload differs")errStartedChannelUsedIncorrectly = errors.New("started channel used incorrectly, should only be closed")errBadIVLength = errors.New("bad iv length in xorBytesCTR")errExceededMaxPackets = errors.New("exceeded the maximum number of packets")errMKIAlreadyInUse = errors.New("MKI already in use")errMKIIsNotEnabled = errors.New("MKI is not enabled")errInvalidMKILength = errors.New("invalid MKI length")errTooLongSRTPAuthTag = errors.New("SRTP auth tag is too long")errTooShortSRTPAuthTag = errors.New("SRTP auth tag is too short")errStreamNotInited = errors.New("stream has not been inited, unable to close")errStreamAlreadyClosed = errors.New("stream is already closed")errStreamAlreadyInited = errors.New("stream is already inited")errFailedTypeAssertion = errors.New("failed to cast child")errZeroRocTransmitRate = errors.New("ROC transmit rate is zero")errUnsupportedRccMode = errors.New("unsupported RCC mode"))type duplicatedError struct {Proto string // srtp or srtcpSSRC uint32Index uint32 // sequence number or index}func ( *duplicatedError) () string {return fmt.Sprintf("%s ssrc=%d index=%d: %v", .Proto, .SSRC, .Index, errDuplicated)}func ( *duplicatedError) () error {return errDuplicated}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |