| 55 | #include "flow/actorcompiler.h" // This must be the last #include. |
| 56 | |
| 57 | std::vector<std::string> LoadedTLSConfig::getVerifyPeers() const { |
| 58 | if (tlsVerifyPeers.size()) { |
| 59 | return tlsVerifyPeers; |
| 60 | } |
| 61 | |
| 62 | std::string envVerifyPeers; |
| 63 | if (platform::getEnvironmentVar("FDB_TLS_VERIFY_PEERS", envVerifyPeers)) { |
| 64 | return { envVerifyPeers }; |
| 65 | } |
| 66 | |
| 67 | return { "Check.Valid=1" }; |
| 68 | } |
| 69 | |
| 70 | std::string LoadedTLSConfig::getPassword() const { |
| 71 | if (tlsPassword.size()) { |
no test coverage detected