Skip to content

Drop #ifdef NODE_FIPS_MODE wherever possible #34903

Closed
@voxik

Description

@voxik

Drop #ifdef NODE_FIPS_MODE wherever possible, because it does not make sense to guard FIPS code by #ifdef NODE_FIPS_MODE, when this ifdef is immediately followed by FIPS_mode(). It would make sense if the FIPS_mode() is not defined depending on OpenSSL settings, but that is not the case. I believe that removing the guards would help our users to get more precise information about FIPS settings from calls such as node -p 'crypto.getFips()'. This would also help to resolve this ticket.

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildIssues and PRs related to build files or the CI.cryptoIssues and PRs related to the crypto subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions