Reece Wilson
d68fc7fc91
[+] ByteBuffer::GetNextLinearWrite() [-] ByteBuffer::WriterTryGetWriteHeadFor [+] ITLSPrivateKeyPair [+] ITLSContext::GetFatalErrorCodeAsString() [+] Begin to add certificate chains [*] Clean up TLS
28 lines
649 B
C++
28 lines
649 B
C++
/***
|
|
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
File: TLSPrivateKeyPair.hpp
|
|
Date: 2022-8-27
|
|
Author: Reece
|
|
***/
|
|
#pragma once
|
|
|
|
#include "TLSCertificateChain.hpp"
|
|
|
|
namespace Aurora::IO::TLS
|
|
{
|
|
struct TLSPrivateKeyPairImpl : ITLSPrivateKeyPair, AuEnableSharedFromThis<TLSPrivateKeyPairImpl>
|
|
{
|
|
TLSPrivateKeyPairImpl();
|
|
~TLSPrivateKeyPairImpl();
|
|
|
|
virtual AuSPtr<ICertificateChain> GetChain() override;
|
|
|
|
CertificateChain *ToChain();
|
|
mbedtls_pk_context &GetInternal();
|
|
|
|
private:
|
|
CertificateChain chain_;
|
|
mbedtls_pk_context privateKey_;
|
|
};
|
|
} |