// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include #include namespace vespalib::net::tls { RequiredPeerCredential required_cn(vespalib::stringref pattern); RequiredPeerCredential required_san_dns(vespalib::stringref pattern); RequiredPeerCredential required_san_uri(vespalib::stringref pattern); PeerPolicy policy_with(std::vector creds); PeerPolicy policy_with(std::vector creds, CapabilitySet capabilities); AuthorizedPeers authorized_peers(std::vector peer_policies); // Some shortcuts for valid capabilities: Capability cap_1(); Capability cap_2(); Capability cap_3(); Capability cap_4(); }