1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:47:45 +00:00

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
parent c5542ea2c9
commit 114a383af3
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) {