MCPcopy Create free account
hub / github.com/apache/impala / IsSupported

Method IsSupported

be/src/rpc/thrift-server.cc:95–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95bool SSLProtoVersions::IsSupported(const SSLProtocol& protocol) {
96 DCHECK_LE(protocol, TLSv1_2);
97 int max_supported_tls_version = MaxSupportedTlsVersion();
98 DCHECK_GE(max_supported_tls_version, TLS1_VERSION);
99
100 switch (max_supported_tls_version) {
101 case TLS1_VERSION:
102 return protocol == TLSv1_0;
103 case TLS1_1_VERSION:
104 return protocol == TLSv1_0 || protocol == TLSv1_1;
105 default:
106 DCHECK_GE(max_supported_tls_version, TLS1_2_VERSION);
107 return true;
108 }
109}
110
111Status ThriftServer::ThriftServerEventProcessor::StartAndWaitForServer() {
112 // Locking here protects against missed notifications if Supervise executes quickly

Callers

nothing calls this directly

Calls 1

MaxSupportedTlsVersionFunction · 0.85

Tested by

no test coverage detected