| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b9136c0 commit 06327e5
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -19,7 +19,7 @@ const defaultSessionIdContext = getDefaultSessionIdContext(); | |||
| 19 | 19 | function getDefaultSessionIdContext() { | |
| 20 | 20 | var defaultText = process.argv.join(' '); | |
| 21 | 21 | /* SSL_MAX_SID_CTX_LENGTH is 128 bits */ | |
| 22 | - if (process.config.variables.openssl_fips) { | ||
| 22 | + if (process.binding('config').fipsMode) { | ||
| 23 | 23 | return crypto.createHash('sha1') | |
| 24 | 24 | .update(defaultText) | |
| 25 | 25 | .digest('hex').slice(0, 32); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -28,7 +28,10 @@ using v8::ReadOnly; | |||
| 28 | 28 | void InitConfig(Local<Object> target, | |
| 29 | 29 | Local<Value> unused, | |
| 30 | 30 | Local<Context> context) { | |
| 31 | - // Environment* env = Environment::GetCurrent(context); | ||
| 31 | + #ifdef NODE_FIPS_MODE | ||
| 32 | + Environment* env = Environment::GetCurrent(context); | ||
| 33 | + READONLY_BOOLEAN_PROPERTY("fipsMode"); | ||
| 34 | + #endif | ||
| 32 | 35 | } | |
| 33 | 36 | ||
| 34 | 37 | } // namespace node | |
| Back | FazBrowse Home | New Git URL |
0 commit comments