LibTLS: Add self signage information to our parsed certificates

This commit is contained in:
Fabian Dellwing 2023-03-21 18:48:05 +01:00 committed by Ali Mohammad Pur
commit 114a383af3
Notes: sideshowbarker 2024-07-17 07:35:03 +09:00
3 changed files with 27 additions and 0 deletions

View file

@ -349,6 +349,11 @@ Optional<Certificate> Certificate::parse_asn1(ReadonlyBytes buffer, bool)
return {};
}
// self issued
{
certificate.is_self_issued = certificate.issuer_identifier_string() == certificate.subject_identifier_string();
}
// extensions
{
if (certificate.version == 2) {