mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibTLS: Avoid unnecessary HashMap copies, improve const-correctness
This commit is contained in:
parent
f866c80222
commit
2bb2a7097d
Notes:
sideshowbarker
2024-07-17 07:43:05 +09:00
Author: https://github.com/BenWiederhake
Commit: 2bb2a7097d
Pull-request: https://github.com/SerenityOS/serenity/pull/18821
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/gmta ✅
Reviewed-by: https://github.com/kleinesfilmroellchen ✅
4 changed files with 11 additions and 11 deletions
|
@ -78,7 +78,7 @@ ssize_t TLSv12::handle_certificate(ReadonlyBytes buffer)
|
|||
|
||||
auto certificate = Certificate::parse_certificate(buffer.slice(res_cert, certificate_size_specific), false);
|
||||
if (!certificate.is_error()) {
|
||||
m_context.certificates.append(certificate.value());
|
||||
m_context.certificates.empend(certificate.value());
|
||||
valid_certificate = true;
|
||||
} else {
|
||||
dbgln("Failed to parse client cert: {}", certificate.error());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue