Reece Wilson
d68fc7fc91
[+] ByteBuffer::GetNextLinearWrite() [-] ByteBuffer::WriterTryGetWriteHeadFor [+] ITLSPrivateKeyPair [+] ITLSContext::GetFatalErrorCodeAsString() [+] Begin to add certificate chains [*] Clean up TLS
29 lines
785 B
C++
29 lines
785 B
C++
/***
|
|
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
File: TLSCertificateChain.hpp
|
|
Date: 2022-8-27
|
|
Author: Reece
|
|
***/
|
|
#pragma once
|
|
namespace Aurora::IO::TLS
|
|
{
|
|
struct CertificateChain : ICertificateChain
|
|
{
|
|
CertificateChain();
|
|
~CertificateChain();
|
|
|
|
virtual AuUInt32 GetCertificateCount() override;
|
|
virtual AuMemoryViewRead GetCertificate(AuUInt32 idx) override;
|
|
|
|
bool Init(const AuList<AuByteBuffer> &certs);
|
|
bool Init(const AuList<AuMemoryViewRead> &certs);
|
|
bool Init(const AuMemoryViewRead &cert);
|
|
bool Init(const mbedtls_x509_crt *pCert);
|
|
|
|
bool Precache();
|
|
|
|
mbedtls_x509_crt *pCertificate;
|
|
mbedtls_x509_crt ownCertificate;
|
|
};
|
|
} |