blob: c2acb787be91efeba9d757ab0b20c6050acb2dcc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright OpenBMC Authors
#pragma once
#include <openssl/crypto.h>
#include <string>
#include <string_view>
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);
|