Skip to content

Commit

Permalink
src: cleanup some obsolete includes in crypto_util
Browse files Browse the repository at this point in the history
  • Loading branch information
jasnell committed Mar 5, 2025
1 parent ea46b92 commit 5ed620a
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions src/crypto/crypto_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,6 @@

#include "ncrypto.h"

#include <openssl/dsa.h>
#include <openssl/ec.h>
#include <openssl/err.h>
#include <openssl/evp.h>
#include <openssl/hmac.h>
#include <openssl/kdf.h>
#include <openssl/rsa.h>
#include <openssl/ssl.h>

// The FIPS-related functions are only available
// when the OpenSSL itself was compiled with FIPS support.
#if defined(OPENSSL_FIPS) && OPENSSL_VERSION_MAJOR < 3
# include <openssl/fips.h>
#endif // OPENSSL_FIPS

#include <algorithm>
#include <climits>
#include <cstdio>
Expand All @@ -37,9 +22,7 @@
#include <string>
#include <vector>

namespace node {

namespace crypto {
namespace node::crypto {
// Currently known sizes of commonly used OpenSSL struct sizes.
// OpenSSL considers it's various structs to be opaque and the
// sizes may change from one version of OpenSSL to another, so
Expand Down Expand Up @@ -665,9 +648,7 @@ namespace Util {
void Initialize(Environment* env, v8::Local<v8::Object> target);
void RegisterExternalReferences(ExternalReferenceRegistry* registry);
} // namespace Util

} // namespace crypto
} // namespace node
} // namespace node::crypto

#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
#endif // SRC_CRYPTO_CRYPTO_UTIL_H_

0 comments on commit 5ed620a

Please sign in to comment.