diff --git a/src/crypto/crypto_bio.cc b/src/crypto/crypto_bio.cc index df9eaeb9440448..e9c920ccffa70a 100644 --- a/src/crypto/crypto_bio.cc +++ b/src/crypto/crypto_bio.cc @@ -43,9 +43,9 @@ BIOPointer NodeBIO::New(Environment* env) { BIOPointer NodeBIO::NewFixed(const char* data, size_t len, Environment* env) { BIOPointer bio = New(env); - if (!bio || - len > INT_MAX || - BIOPointer::Write(&bio, std::string_view(data, len)) != static_cast(len) || + if (!bio || len > INT_MAX || + BIOPointer::Write(&bio, std::string_view(data, len)) != + static_cast(len) || BIO_set_mem_eof_return(bio.get(), 0) != 1) { return BIOPointer(); } diff --git a/src/crypto/crypto_common.cc b/src/crypto/crypto_common.cc index c75d2e8cf9da5f..7841d1b885c6d2 100644 --- a/src/crypto/crypto_common.cc +++ b/src/crypto/crypto_common.cc @@ -466,7 +466,8 @@ MaybeLocal GetExponentString( const BIOPointer& bio, const BIGNUM* e) { uint64_t exponent_word = static_cast(BignumPointer::GetWord(e)); - BIOPointer::Printf(const_cast(&bio), "0x%" PRIx64, exponent_word); + BIOPointer::Printf( + const_cast(&bio), "0x%" PRIx64, exponent_word); return ToV8Value(env, bio); } diff --git a/src/crypto/crypto_context.cc b/src/crypto/crypto_context.cc index 8c18ef2ab01d2a..c95c461e180d8a 100644 --- a/src/crypto/crypto_context.cc +++ b/src/crypto/crypto_context.cc @@ -68,7 +68,8 @@ BIOPointer LoadBIO(Environment* env, Local v) { if (!bio) return {}; ByteSource bsrc = ByteSource::FromStringOrBuffer(env, v); if (bsrc.size() > INT_MAX) return {}; - int written = BIOPointer::Write(&bio, std::string_view(bsrc.data(), bsrc.size())); + int written = BIOPointer::Write( + &bio, std::string_view(bsrc.data(), bsrc.size())); if (written < 0) return {}; if (static_cast(written) != bsrc.size()) return {}; return bio; diff --git a/src/crypto/crypto_keys.cc b/src/crypto/crypto_keys.cc index 15c16ee8e52d02..f49bb1254cb219 100644 --- a/src/crypto/crypto_keys.cc +++ b/src/crypto/crypto_keys.cc @@ -270,10 +270,9 @@ ParseKeyResult ParsePrivateKey(EVPKeyPointer* pkey, return ParseKeyResult::kParseKeyFailed; } -MaybeLocal BIOToStringOrBuffer( - Environment* env, - const BIOPointer& bio, - PKFormatType format) { +MaybeLocal BIOToStringOrBuffer(Environment* env, + const BIOPointer& bio, + PKFormatType format) { BUF_MEM* bptr = bio; if (format == kKeyFormatPEM) { // PEM is an ASCII format, so we will return it as a string. diff --git a/src/crypto/crypto_tls.cc b/src/crypto/crypto_tls.cc index 2aa8b224dee725..4013c1d8e2ff68 100644 --- a/src/crypto/crypto_tls.cc +++ b/src/crypto/crypto_tls.cc @@ -21,12 +21,12 @@ #include "crypto/crypto_tls.h" #include -#include "crypto/crypto_context.h" -#include "crypto/crypto_common.h" -#include "crypto/crypto_util.h" +#include "async_wrap-inl.h" #include "crypto/crypto_bio.h" #include "crypto/crypto_clienthello-inl.h" -#include "async_wrap-inl.h" +#include "crypto/crypto_common.h" +#include "crypto/crypto_context.h" +#include "crypto/crypto_util.h" #include "debug_utils-inl.h" #include "memory_tracker-inl.h" #include "node_buffer.h"