Skip to content

Commit

Permalink
Update src/crypto/openssl/rsa_public_key.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Amaury Chamayou <[email protected]>
  • Loading branch information
maxtropets and achamayou authored Jan 3, 2025
1 parent c491c19 commit 05c8e95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crypto/openssl/rsa_public_key.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ namespace ccf::crypto
throw std::runtime_error(fmt::format("OpenSSL error: {}", msg));
}

// As it's a common patter to rely on successful key wrapper construction as a
// As it's a common pattern to rely on successful key wrapper construction as a
// confirmation of a concrete key type, this must fail for non-RSA keys.
#if defined(OPENSSL_VERSION_MAJOR) && OPENSSL_VERSION_MAJOR >= 3
if (!key || EVP_PKEY_get_base_id(key) != EVP_PKEY_RSA)
Expand Down

0 comments on commit 05c8e95

Please sign in to comment.