Ed Tanous | 7c8e064 | 2022-02-21 12:11:14 -0800 | [diff] [blame] | 1 | #pragma once |
| 2 | |
Ed Tanous | 7c8e064 | 2022-02-21 12:11:14 -0800 | [diff] [blame] | 3 | #include "persistent_data.hpp" |
| 4 | |
Ed Tanous | 7c8e064 | 2022-02-21 12:11:14 -0800 | [diff] [blame] | 5 | #include <boost/asio/ip/address.hpp> |
| 6 | #include <boost/asio/ssl/verify_context.hpp> |
| 7 | |
| 8 | #include <memory> |
Ed Tanous | 724985f | 2024-06-05 09:19:06 -0700 | [diff] [blame] | 9 | #include <string_view> |
Ed Tanous | 7c8e064 | 2022-02-21 12:11:14 -0800 | [diff] [blame] | 10 | |
Ed Tanous | 724985f | 2024-06-05 09:19:06 -0700 | [diff] [blame] | 11 | std::string getUsernameFromCommonName(std::string_view commonName); |
Ed Tanous | 3ce3688 | 2024-06-09 10:58:16 -0700 | [diff] [blame] | 12 | |
Ed Tanous | 724985f | 2024-06-05 09:19:06 -0700 | [diff] [blame] | 13 | std::shared_ptr<persistent_data::UserSession> |
Ed Tanous | 7c8e064 | 2022-02-21 12:11:14 -0800 | [diff] [blame] | 14 | verifyMtlsUser(const boost::asio::ip::address& clientIp, |
Ed Tanous | 724985f | 2024-06-05 09:19:06 -0700 | [diff] [blame] | 15 | boost::asio::ssl::verify_context& ctx); |