AuroraRuntime/Source/Crypto/CA/AuPinDummy.hpp

21 lines
486 B
C++
Raw Permalink Normal View History

/***
Copyright (C) 2024 Jamie Reece Wilson (a/k/a "Reece"). All rights reserved.
File: AuPinDummy.hpp
Date: 2024-10-14
Author: Reece
***/
#pragma once
namespace Aurora::Crypto::CA
{
template<bool bStatus>
struct DummyPinner : IPinCertificate
{
bool CheckCertificate(const AuSPtr<X509::ICertificateChain> &pChain,
const AuMemoryViewRead &derCertificate) override
{
return bStatus;
}
};
}