mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:27:35 +00:00
LibCore: Rename Stream::*_or_error
to *_entire_buffer
All of our functions are `_or_error` (or are about to be), and maybe making it less reminiscient of AK::Stream will make people use it more.
This commit is contained in:
parent
ed4c2f2f8e
commit
6c7c5a6786
17 changed files with 44 additions and 36 deletions
|
@ -141,11 +141,11 @@ bool TLSv12::compute_master_secret_from_pre_master_secret(size_t length)
|
|||
|
||||
if constexpr (TLS_SSL_KEYLOG_DEBUG) {
|
||||
auto file = MUST(Core::Stream::File::open("/home/anon/ssl_keylog"sv, Core::Stream::OpenMode::Append | Core::Stream::OpenMode::Write));
|
||||
VERIFY(file->write_or_error("CLIENT_RANDOM "sv.bytes()));
|
||||
VERIFY(file->write_or_error(encode_hex({ m_context.local_random, 32 }).bytes()));
|
||||
VERIFY(file->write_or_error(" "sv.bytes()));
|
||||
VERIFY(file->write_or_error(encode_hex(m_context.master_key).bytes()));
|
||||
VERIFY(file->write_or_error("\n"sv.bytes()));
|
||||
VERIFY(file->write_entire_buffer("CLIENT_RANDOM "sv.bytes()));
|
||||
VERIFY(file->write_entire_buffer(encode_hex({ m_context.local_random, 32 }).bytes()));
|
||||
VERIFY(file->write_entire_buffer(" "sv.bytes()));
|
||||
VERIFY(file->write_entire_buffer(encode_hex(m_context.master_key).bytes()));
|
||||
VERIFY(file->write_entire_buffer("\n"sv.bytes()));
|
||||
}
|
||||
|
||||
expand_key();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue