Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Support for Deprecated SSLv3 #14412

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
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
16 changes: 6 additions & 10 deletions libbeat/common/transport/tlscommon/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,9 @@ type TLSVersion uint16

// Define all the possible TLS version.
const (
TLSVersionSSL30 TLSVersion = tls.VersionSSL30
TLSVersion10 TLSVersion = tls.VersionTLS10
TLSVersion11 TLSVersion = tls.VersionTLS11
TLSVersion12 TLSVersion = tls.VersionTLS12
TLSVersion10 TLSVersion = tls.VersionTLS10
TLSVersion11 TLSVersion = tls.VersionTLS11
TLSVersion12 TLSVersion = tls.VersionTLS12
)

// TLSDefaultVersions list of versions of TLS we should support.
Expand All @@ -131,19 +130,16 @@ var tlsClientAuthTypes = map[string]tlsClientAuth{
}

var tlsProtocolVersions = map[string]TLSVersion{
"SSLv3": TLSVersionSSL30,
"SSLv3.0": TLSVersionSSL30,
"TLSv1": TLSVersion10,
"TLSv1.0": TLSVersion10,
"TLSv1.1": TLSVersion11,
"TLSv1.2": TLSVersion12,
}

var tlsProtocolVersionsInverse = map[TLSVersion]string{
TLSVersionSSL30: "SSLv3",
TLSVersion10: "TLSv1.0",
TLSVersion11: "TLSv1.1",
TLSVersion12: "TLSv1.2",
TLSVersion10: "TLSv1.0",
TLSVersion11: "TLSv1.1",
TLSVersion12: "TLSv1.2",
}

// TLSVerificationMode represents the type of verification to do on the remote host,
Expand Down
7 changes: 3 additions & 4 deletions libbeat/outputs/transport/tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ type TLSVersion = tlscommon.TLSVersion

// Define all the possible TLS version.
const (
TLSVersionSSL30 = tlscommon.TLSVersionSSL30
TLSVersion10 = tlscommon.TLSVersion10
TLSVersion11 = tlscommon.TLSVersion11
TLSVersion12 = tlscommon.TLSVersion12
TLSVersion10 = tlscommon.TLSVersion10
TLSVersion11 = tlscommon.TLSVersion11
TLSVersion12 = tlscommon.TLSVersion12
)

// Constants of the supported verification mode.
Expand Down