// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "tls_context.h" #include #include #include namespace vespalib::net::tls { std::shared_ptr TlsContext::create_default_context(const TransportSecurityOptions& opts, AuthorizationMode authz_mode) { auto verifier = create_verify_callback_from(opts.authorized_peers()); return std::make_shared(opts, std::move(verifier), authz_mode); } std::shared_ptr TlsContext::create_default_context( const TransportSecurityOptions& opts, std::shared_ptr cert_verify_callback, AuthorizationMode authz_mode) { return std::make_shared(opts, std::move(cert_verify_callback), authz_mode); } }