1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:37:46 +00:00

LibTLS: Avoid implicitly copying ByteBuffer

This commit is contained in:
Ben Wiederhake 2021-11-28 22:15:57 +01:00 committed by Brian Gianforcaro
parent f3e496d995
commit 7967a8bd8c

View file

@ -341,7 +341,7 @@ bool TLSv12::add_client_key(ReadonlyBytes certificate_pem_buffer, ReadonlyBytes
} }
Crypto::PK::RSA rsa(rsa_key); Crypto::PK::RSA rsa(rsa_key);
auto certificate = maybe_certificate.value(); auto certificate = maybe_certificate.release_value();
certificate.private_key = rsa.private_key(); certificate.private_key = rsa.private_key();
return add_client_key(certificate); return add_client_key(certificate);