MCPcopy Create free account
hub / github.com/apple/foundationdb / getVerifyPeers

Method getVerifyPeers

flow/TLSConfig.actor.cpp:57–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55#include "flow/actorcompiler.h" // This must be the last #include.
56
57std::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
70std::string LoadedTLSConfig::getPassword() const {
71 if (tlsPassword.size()) {

Callers 2

TLSPolicyMethod · 0.80
initTLSMethod · 0.80

Calls 2

getEnvironmentVarFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected