| 93 | } |
| 94 | |
| 95 | bool 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 | |
| 111 | Status ThriftServer::ThriftServerEventProcessor::StartAndWaitForServer() { |
| 112 | // Locking here protects against missed notifications if Supervise executes quickly |
nothing calls this directly
no test coverage detected