33 lines
959 B
C++
33 lines
959 B
C++
|
/***
|
||
|
Copyright (C) 2024 Jamie Reece Wilson (a/k/a "Reece"). All rights reserved.
|
||
|
|
||
|
File: AuPinPair.hpp
|
||
|
Date: 2024-10-14
|
||
|
Author: Reece
|
||
|
***/
|
||
|
#pragma once
|
||
|
|
||
|
namespace Aurora::Crypto::CA
|
||
|
{
|
||
|
struct OpAndPinner : IPinCertificate
|
||
|
{
|
||
|
AuSPtr<IPinCertificate> pA;
|
||
|
AuSPtr<IPinCertificate> pB;
|
||
|
|
||
|
OpAndPinner(const AuSPtr<IPinCertificate> &pA, const AuSPtr<IPinCertificate> &pB);
|
||
|
|
||
|
bool CheckCertificate(const AuSPtr<X509::ICertificateChain> &pChain,
|
||
|
const AuMemoryViewRead &derCertificate) override;
|
||
|
};
|
||
|
|
||
|
struct OpOrPinner : IPinCertificate
|
||
|
{
|
||
|
AuSPtr<IPinCertificate> pA;
|
||
|
AuSPtr<IPinCertificate> pB;
|
||
|
|
||
|
OpOrPinner(const AuSPtr<IPinCertificate> &pA, const AuSPtr<IPinCertificate> &pB);
|
||
|
|
||
|
bool CheckCertificate(const AuSPtr<X509::ICertificateChain> &pChain,
|
||
|
const AuMemoryViewRead &derCertificate) override;
|
||
|
};
|
||
|
}
|