J Reece Wilson
7a0593adeb
[+] AuCrypto::CA::INewCertificateStore [+] AuCrypto::CA::IPinCertificate [+] AuCrypto::CA::PinAlwaysFail [+] AuCrypto::CA::PinAlwaysPass [+] AuCrypto::CA::PinCheckOS [+] AuCrypto::CA::PinCheckDefault [+] AuCrypto::CA::PinCheckBuiltin [+] AuCrypto::CA::PinCheckGlobal [+] AuCrypto::CA::PinCheckTwoAnd [+] AuCrypto::CA::PinCheckTwoOr [+] AuCrypto::CA::SetGlobalTLSPinner [*] Minor AuCrypto::X509 decoder work [*] AuCrypto::X509: transition to memory views (x509 is bytebuffer era and earlier code, beri early) [+] AuCrypto::IPrivateKeyProvider [+] AuCrypto::IPrivateKeyPair [+] AuCrypto::PrivateKeyPair [+] AuCrypto::ImportPrivateKeyPair [*] Refactor: AuCrypto::X509::GenerateCertificate(...) [+] AuCrypto::X509::NewChainFromOneDer [+] AuCrypto::X509::NewChainFromManyDer [+] AuCrypto::X509::NewChainFromManyDerInStream [+] AuCrypto::X509::NewChainFromOnePem [+] AuCrypto::X509::NewChainFromManyPem [+] AuCrypto::X509::NewChainFromManyPemInStream [*] Fix TLS code that was abandoned since its introduction with the net code. mbedtls is a hairbrained mess. so many *blocking* github issues starting after 2017. so little progress. [+] AuIO::TLS::TLSMeta::pKeyPairProvider [+] AuIO::TLS::TLSServer::bAllowSNIToFallBackDefault [+] AuIO::TLS::TLSServer::bAllowSNILessUseDefaultCert
50 lines
1.2 KiB
C++
Executable File
50 lines
1.2 KiB
C++
Executable File
/***
|
|
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
File: CertificateDecoded.hpp
|
|
Date: 2021-6-11
|
|
Author: Reece
|
|
***/
|
|
#pragma once
|
|
|
|
namespace Aurora::Crypto::X509
|
|
{
|
|
struct CertificateDecoded
|
|
{
|
|
AU_COPY_MOVE_DEF(CertificateDecoded);
|
|
int version {};
|
|
int iMaxPath {};
|
|
bool bIsCA {};
|
|
Hashing::EHashType digest;
|
|
|
|
struct Issuer : CertificateName
|
|
{
|
|
AU_COPY_MOVE_DEF(Issuer);
|
|
Memory::ByteBuffer id;
|
|
} issuer;
|
|
|
|
struct Subject : CertificateName
|
|
{
|
|
AU_COPY_MOVE_DEF(Subject);
|
|
Memory::ByteBuffer id;
|
|
} subject;
|
|
|
|
struct Vaildity
|
|
{
|
|
AU_COPY_MOVE_DEF(Vaildity);
|
|
AuUInt issued;
|
|
AuUInt expire;
|
|
} validity;
|
|
|
|
AuList<EExtendedUsage> usage;
|
|
Memory::ByteBuffer publicKey;
|
|
Memory::ByteBuffer serialNumber;
|
|
Memory::ByteBuffer algorithmOid;
|
|
AuList<AuString> AIAs;
|
|
AuList<AuString> OCSPs;
|
|
|
|
// TODO: AuString CRL;
|
|
// TODO: AuList<String> subjectNames;
|
|
// TODO: ...
|
|
};
|
|
} |