@@ -577,9 +577,8 @@ void SecureContext::SetKeylogCallback(KeylogCb cb) {
577
577
SSL_CTX_set_keylog_callback (ctx_.get (), cb);
578
578
}
579
579
580
- Maybe<bool > SecureContext::UseKey (
581
- Environment* env,
582
- std::shared_ptr<KeyObjectData> key) {
580
+ Maybe<bool > SecureContext::UseKey (Environment* env,
581
+ std::shared_ptr<KeyObjectData> key) {
583
582
if (key->GetKeyType () != KeyType::kKeyTypePrivate ) {
584
583
THROW_ERR_CRYPTO_INVALID_KEYTYPE (env);
585
584
return Nothing<bool >();
@@ -693,10 +692,7 @@ Maybe<bool> SecureContext::AddCert(Environment* env, BIOPointer&& bio) {
693
692
// confusing, unfortunately.
694
693
if (SSL_CTX_use_certificate_chain (
695
694
ctx_.get (), std::move (bio), &cert_, &issuer_) != 0 ) {
696
- ThrowCryptoError (
697
- env,
698
- ERR_get_error (),
699
- " SSL_CTX_use_certificate_chain" );
695
+ ThrowCryptoError (env, ERR_get_error (), " SSL_CTX_use_certificate_chain" );
700
696
return Nothing<bool >();
701
697
}
702
698
return Just (true );
@@ -760,9 +756,9 @@ Maybe<bool> SecureContext::SetCRL(Environment* env, const BIOPointer& bio) {
760
756
}
761
757
762
758
CHECK_EQ (1 , X509_STORE_add_crl (cert_store, crl.get ()));
763
- CHECK_EQ (1 , X509_STORE_set_flags (cert_store,
764
- X509_V_FLAG_CRL_CHECK |
765
- X509_V_FLAG_CRL_CHECK_ALL));
759
+ CHECK_EQ (1 ,
760
+ X509_STORE_set_flags (
761
+ cert_store, X509_V_FLAG_CRL_CHECK | X509_V_FLAG_CRL_CHECK_ALL));
766
762
return Just (true );
767
763
}
768
764
0 commit comments