mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
LibTLS: Add self signage information to our parsed certificates
This commit is contained in:
parent
c5542ea2c9
commit
114a383af3
Notes:
sideshowbarker
2024-07-17 07:35:03 +09:00
Author: https://github.com/fdellwing
Commit: 114a383af3
Pull-request: https://github.com/SerenityOS/serenity/pull/17955
Reviewed-by: https://github.com/gmta ✅
Reviewed-by: https://github.com/kleinesfilmroellchen ✅
3 changed files with 27 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue