1 #pragma once 2 3 #include "persistent_data.hpp" 4 5 #include <boost/asio/ip/address.hpp> 6 #include <boost/asio/ssl/verify_context.hpp> 7 8 #include <memory> 9 #include <string_view> 10 11 std::string getUsernameFromCommonName(std::string_view commonName); 12 13 std::shared_ptr<persistent_data::UserSession> 14 verifyMtlsUser(const boost::asio::ip::address& clientIp, 15 boost::asio::ssl::verify_context& ctx); 16