Skip to content

Commit de32942

Browse files
committed
lint
1 parent f550da6 commit de32942

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

src/ncrypto.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ bool testFipsEnabled() {
288288
#else
289289
#ifdef OPENSSL_FIPS
290290
return FIPS_selftest();
291-
#else // OPENSSL_FIPS
291+
#else // OPENSSL_FIPS
292292
return false;
293293
#endif // OPENSSL_FIPS
294294
#endif
@@ -2769,7 +2769,7 @@ EVPKeyPointer::operator Dsa() const {
27692769

27702770
bool EVPKeyPointer::validateDsaParameters() const {
27712771
if (!pkey_) return false;
2772-
/* Validate DSA2 parameters from FIPS 186-4 */
2772+
/* Validate DSA2 parameters from FIPS 186-4 */
27732773
#if OPENSSL_VERSION_MAJOR >= 3
27742774
if (EVP_default_properties_is_fips_enabled(nullptr) && EVP_PKEY_DSA == id()) {
27752775
#else

tests/basic.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ TEST(basic, cipher_foreach) {
3737
// as that depends on openssl vs boringssl, versions, configuration, etc.
3838
// Instead, we look for a couple of very common ciphers that should always be
3939
// present.
40-
ASSERT_TRUE(foundCiphers.count("aes-128-ctr") || foundCiphers.count("AES-128-CTR"));
41-
ASSERT_TRUE(foundCiphers.count("aes-256-cbc") || foundCiphers.count("AES-256-CBC"));
40+
ASSERT_TRUE(foundCiphers.count("aes-128-ctr") ||
41+
foundCiphers.count("AES-128-CTR"));
42+
ASSERT_TRUE(foundCiphers.count("aes-256-cbc") ||
43+
foundCiphers.count("AES-256-CBC"));
4244
}
4345

4446
#ifdef OPENSSL_IS_BORINGSSL

0 commit comments

Comments
 (0)