Commit 06327e5e authored by James M Snell's avatar James M Snell Committed by Myles Borins
Browse files

tls: use process.binding('config') to detect fips mode

When the fips mode check was added sometime in v4 it caused a
regression in some edge cases (see https://github.com/nodejs/node/issues/6114)
because `process.config` can be overwritten by userland modules.
This switches to using the backported process.binding('config') to
fix the regression.

Fixes: https://github.com/nodejs/node/issues/6114

PR-URL: https://github.com/nodejs/node/pull/7551


Reviewed-By: default avatarMyles Borins <myles.borins@gmail.com>
parent b9136c0c
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment