146146#define EVP_PKEY_ML_KEM_512 NID_ML_KEM_512
147147#define EVP_PKEY_ML_KEM_768 NID_ML_KEM_768
148148#define EVP_PKEY_ML_KEM_1024 NID_ML_KEM_1024
149- #include < openssl/core_names.h>
150149#elif OPENSSL_WITH_BORINGSSL_PQC
151150#define EVP_PKEY_ML_KEM_768 NID_ML_KEM_768
152151#define EVP_PKEY_ML_KEM_1024 NID_ML_KEM_1024
@@ -546,7 +545,9 @@ class Dsa final {
546545 NCRYPTO_DISALLOW_COPY_AND_MOVE (Dsa)
547546
548547#if NCRYPTO_USE_OPENSSL3_PROVIDER
549- inline operator bool () const { return dsa_; }
548+ inline operator bool () const {
549+ return dsa_;
550+ }
550551#else
551552 inline operator bool () const { return dsa_ != nullptr ; }
552553#endif
@@ -583,7 +584,9 @@ class Rsa final {
583584 NCRYPTO_DISALLOW_COPY_AND_MOVE (Rsa)
584585
585586#if NCRYPTO_USE_OPENSSL3_PROVIDER
586- inline operator bool () const { return rsa_; }
587+ inline operator bool () const {
588+ return rsa_;
589+ }
587590#else
588591 inline operator bool () const { return rsa_ != nullptr ; }
589592#endif
@@ -1179,8 +1182,12 @@ class DHPointer final {
11791182 ~DHPointer ();
11801183
11811184#if NCRYPTO_USE_OPENSSL3_PROVIDER
1182- inline bool operator ==(std::nullptr_t ) noexcept { return !operator bool (); }
1183- inline operator bool () const { return dh_ != nullptr || (p_ && g_); }
1185+ inline bool operator ==(std::nullptr_t ) noexcept {
1186+ return !operator bool ();
1187+ }
1188+ inline operator bool () const {
1189+ return dh_ != nullptr || (p_ && g_);
1190+ }
11841191#else
11851192 inline bool operator ==(std::nullptr_t ) noexcept { return dh_ == nullptr ; }
11861193 inline operator bool () const { return dh_ != nullptr ; }
@@ -1190,7 +1197,9 @@ class DHPointer final {
11901197 void reset (DH * dh = nullptr );
11911198 DH * release ();
11921199#else
1193- inline EVP_PKEY * get () const { return dh_.get (); }
1200+ inline EVP_PKEY * get () const {
1201+ return dh_.get ();
1202+ }
11941203 void reset (EVP_PKEY * dh = nullptr );
11951204 EVP_PKEY * release ();
11961205#endif
@@ -1575,8 +1584,12 @@ class ECKeyPointer final {
15751584 ~ECKeyPointer ();
15761585
15771586#if NCRYPTO_USE_OPENSSL3_PROVIDER
1578- inline bool operator ==(std::nullptr_t ) noexcept { return group_ == nullptr ; }
1579- inline operator bool () const { return group_ != nullptr ; }
1587+ inline bool operator ==(std::nullptr_t ) noexcept {
1588+ return group_ == nullptr ;
1589+ }
1590+ inline operator bool () const {
1591+ return group_ != nullptr ;
1592+ }
15801593#else
15811594 inline bool operator ==(std::nullptr_t ) noexcept { return key_ == nullptr ; }
15821595 inline operator bool () const { return key_ != nullptr ; }
0 commit comments