Skip to content

Commit 60a0a10

Browse files
committed
fixup: clang-format
1 parent a640933 commit 60a0a10

File tree

2 files changed

+171
-152
lines changed

2 files changed

+171
-152
lines changed

Diff for: addon/mongocrypt.cc

+15-18
Original file line numberDiff line numberDiff line change
@@ -399,20 +399,18 @@ std::unique_ptr<CryptoHooks> MongoCrypt::createJSCryptoHooks() {
399399
return true;
400400
};
401401

402-
return std::make_unique<CryptoHooks>(CryptoHooks {
403-
"js",
404-
aes_256_cbc_encrypt,
405-
aes_256_cbc_decrypt,
406-
random,
407-
hmac_sha_512,
408-
hmac_sha_256,
409-
sha_256,
410-
aes_256_ctr_encrypt,
411-
aes_256_ctr_decrypt,
412-
nullptr,
413-
sign_rsa_sha256,
414-
this
415-
});
402+
return std::make_unique<CryptoHooks>(CryptoHooks{"js",
403+
aes_256_cbc_encrypt,
404+
aes_256_cbc_decrypt,
405+
random,
406+
hmac_sha_512,
407+
hmac_sha_256,
408+
sha_256,
409+
aes_256_ctr_encrypt,
410+
aes_256_ctr_decrypt,
411+
nullptr,
412+
sign_rsa_sha256,
413+
this});
416414
}
417415

418416
bool MongoCrypt::installCryptoHooks() {
@@ -441,9 +439,7 @@ bool MongoCrypt::installCryptoHooks() {
441439
}
442440

443441
if (hooks.aes_256_ecb_encrypt &&
444-
!mongocrypt_setopt_aes_256_ecb(
445-
_mongo_crypt.get(), hooks.aes_256_ecb_encrypt, hooks.ctx)
446-
) {
442+
!mongocrypt_setopt_aes_256_ecb(_mongo_crypt.get(), hooks.aes_256_ecb_encrypt, hooks.ctx)) {
447443
return false;
448444
}
449445

@@ -565,7 +561,8 @@ Value MongoCrypt::CryptSharedLibVersionInfo(const CallbackInfo& info) {
565561
}
566562

567563
Value MongoCrypt::CryptoHooksProvider(const CallbackInfo& info) {
568-
if (!_crypto_hooks) return Env().Null();
564+
if (!_crypto_hooks)
565+
return Env().Null();
569566
return String::New(Env(), _crypto_hooks->id);
570567
}
571568

0 commit comments

Comments
 (0)