mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:07:35 +00:00
LibTLS: Avoid implicitly copying ByteBuffer
This commit is contained in:
parent
f3e496d995
commit
7967a8bd8c
1 changed files with 1 additions and 1 deletions
|
@ -341,7 +341,7 @@ bool TLSv12::add_client_key(ReadonlyBytes certificate_pem_buffer, ReadonlyBytes
|
|||
}
|
||||
|
||||
Crypto::PK::RSA rsa(rsa_key);
|
||||
auto certificate = maybe_certificate.value();
|
||||
auto certificate = maybe_certificate.release_value();
|
||||
certificate.private_key = rsa.private_key();
|
||||
|
||||
return add_client_key(certificate);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue