1
#include "source/common/tls/cert_validator/factory.h"
2

            
3
#include "envoy/ssl/context_config.h"
4

            
5
namespace Envoy {
6
namespace Extensions {
7
namespace TransportSockets {
8
namespace Tls {
9

            
10
7033
std::string getCertValidatorName(const Envoy::Ssl::CertificateValidationContextConfig* config) {
11
7033
  return config != nullptr && config->customValidatorConfig().has_value()
12
7033
             ? config->customValidatorConfig().value().name()
13
7033
             : "envoy.tls.cert_validator.default";
14
7033
};
15

            
16
} // namespace Tls
17
} // namespace TransportSockets
18
} // namespace Extensions
19
} // namespace Envoy