1
#include "source/common/router/tls_context_match_criteria_impl.h"
2

            
3
#include "envoy/config/route/v3/route_components.pb.h"
4

            
5
namespace Envoy {
6
namespace Router {
7

            
8
TlsContextMatchCriteriaImpl::TlsContextMatchCriteriaImpl(
9
10
    const envoy::config::route::v3::RouteMatch::TlsContextMatchOptions& options) {
10
10
  if (options.has_presented()) {
11
8
    presented_ = options.presented().value();
12
8
  }
13

            
14
10
  if (options.has_validated()) {
15
2
    validated_ = options.validated().value();
16
2
  }
17
10
}
18

            
19
} // namespace Router
20
} // namespace Envoy