blob: c59480af655a2d8e51aaebb8873c43571db95f72 [file] [log] [blame]
Ed Tanous40e9b922024-09-10 13:50:16 -07001// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright OpenBMC Authors
Ed Tanous7c8e0642022-02-21 12:11:14 -08003#pragma once
4
Ed Tanousd7857202025-01-28 15:32:26 -08005#include "sessions.hpp"
Ed Tanous7c8e0642022-02-21 12:11:14 -08006
Ed Tanous7c8e0642022-02-21 12:11:14 -08007#include <boost/asio/ip/address.hpp>
8#include <boost/asio/ssl/verify_context.hpp>
9
10#include <memory>
Ed Tanous3ce36882024-06-09 10:58:16 -070011
Patrick Williams504af5a2025-02-03 14:29:03 -050012std::shared_ptr<persistent_data::UserSession> verifyMtlsUser(
13 const boost::asio::ip::address& clientIp,
14 boost::asio::ssl::verify_context& ctx);