From 47e85541f1f4e83b41a3a08e2354367cb6eb8005 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Tue, 14 Jan 2020 13:14:57 +0100 Subject: [PATCH] Fix comments for NSS PBKDF setup (no code change) --- toolkit/xre/nsAppRunner.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/toolkit/xre/nsAppRunner.cpp b/toolkit/xre/nsAppRunner.cpp index 2b341eee02..c880daef9d 100644 --- a/toolkit/xre/nsAppRunner.cpp +++ b/toolkit/xre/nsAppRunner.cpp @@ -2802,6 +2802,23 @@ XREMain::XRE_mainInit(bool* aExitFlag) SetupErrorHandling(gArgv[0]); +#if 0 + + // Set up environment for NSS DBM database + + // Allow iteration counts in DBM mode + SaveToEnv("NSS_ALLOW_LEGACY_DBM_ITERATION_COUNT=1"); + // Set default Master Password rounds to a sane value for DBM which is slower + // than SQL for PBKDF. The NSS hard-coded default of 10,000 is too much. + // See also Bug 1606992 for perf issues. +#ifdef DEBUG + SaveToEnv("NSS_MAX_MP_PBE_ITERATION_COUNT=15"); +#else + SaveToEnv("NSS_MAX_MP_PBE_ITERATION_COUNT=500"); +#endif + +#endif + #ifdef CAIRO_HAS_DWRITE_FONT { // Bug 602792 - when DWriteCreateFactory is called the dwrite client dll