Source File
cipher_suite_go114.go
Belonging Package
github.com/pion/dtls/v2
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>// SPDX-License-Identifier: MIT//go:build go1.14// +build go1.14package dtlsimport ()// VersionDTLS12 is the DTLS version in the same style as// VersionTLSXX from crypto/tlsconst VersionDTLS12 = 0xfefd// Convert from our cipherSuite interface to a tls.CipherSuite structfunc toTLSCipherSuite( CipherSuite) *tls.CipherSuite {return &tls.CipherSuite{ID: uint16(.ID()),Name: .String(),SupportedVersions: []uint16{VersionDTLS12},Insecure: false,}}// CipherSuites returns a list of cipher suites currently implemented by this// package, excluding those with security issues, which are returned by// InsecureCipherSuites.func () []*tls.CipherSuite {:= allCipherSuites():= make([]*tls.CipherSuite, len())for , := range {[] = toTLSCipherSuite()}return}// InsecureCipherSuites returns a list of cipher suites currently implemented by// this package and which have security issues.func () []*tls.CipherSuite {var []*tls.CipherSuitereturn}
![]() |
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. |