// SPDX-License-Identifier: Apache-2.0 // SPDX-FileCopyrightText: Copyright OpenBMC Authors #pragma once #include #include #include std::string getCommonNameFromCert(X509* cert); std::string getUPNFromCert(X509* peerCert, std::string_view hostname); std::string getUsernameFromCert(X509* cert); bool isUPNMatch(std::string_view upn, std::string_view hostname);