mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 15:28:39 +09:00
Issue #1467 - Part 4: Rename NSS_SQLSTORE to MOZ_SECURITY_SQLSTORE.
Rename the build config option accordingly.
This commit is contained in:
parent
ff29b77edc
commit
8778ddfc52
5 changed files with 15 additions and 15 deletions
|
|
@ -204,7 +204,6 @@ def old_configure_options(*options):
|
|||
'--enable-negotiateauth',
|
||||
'--enable-nfc',
|
||||
'--enable-nspr-build',
|
||||
'--enable-nss-sqlstore',
|
||||
'--enable-official-branding',
|
||||
'--enable-official-vendor',
|
||||
'--enable-oom-breakpoint',
|
||||
|
|
@ -225,6 +224,7 @@ def old_configure_options(*options):
|
|||
'--enable-require-all-d3dc-versions',
|
||||
'--enable-safe-browsing',
|
||||
'--enable-sandbox',
|
||||
'--enable-security-sqlstore',
|
||||
'--enable-signmar',
|
||||
'--enable-simulator',
|
||||
'--enable-small-chunk-size',
|
||||
|
|
|
|||
|
|
@ -2165,11 +2165,11 @@ MOZ_JETPACK=1
|
|||
MOZ_DEVTOOLS_SERVER=1
|
||||
MOZ_DEVTOOLS=
|
||||
MOZ_PLACES=1
|
||||
MOZ_SECURITY_SQLSTORE=
|
||||
MOZ_SERVICES_HEALTHREPORT=1
|
||||
MOZ_SERVICES_SYNC=1
|
||||
MOZ_USERINFO=1
|
||||
NSS_DISABLE_DBM=
|
||||
NSS_SQLSTORE=
|
||||
MOZ_MAILNEWS=
|
||||
MOZ_MAILNEWS_OAUTH2=
|
||||
MOZ_LDAP_XPCOM=
|
||||
|
|
@ -2729,20 +2729,20 @@ AC_SUBST(NSS_DISABLE_DBM)
|
|||
dnl =========================================================
|
||||
dnl = NSS SQL storage format
|
||||
dnl =========================================================
|
||||
MOZ_ARG_ENABLE_BOOL(nss-sqlstore,
|
||||
[ --enable-nss-sqlstore Enable the use of SQL storage for NSS],
|
||||
NSS_SQLSTORE=1,
|
||||
NSS_SQLSTORE=)
|
||||
MOZ_ARG_ENABLE_BOOL(security-sqlstore,
|
||||
[ --enable-security-sqlstore Enable the use of SQL storage for NSS],
|
||||
MOZ_SECURITY_SQLSTORE=1,
|
||||
MOZ_SECURITY_SQLSTORE=)
|
||||
|
||||
if test -n "$NSS_DISABLE_DBM" -a -z "$NSS_SQLSTORE"; then
|
||||
if test -n "$NSS_DISABLE_DBM" -a -z "$MOZ_SECURITY_SQLSTORE"; then
|
||||
AC_MSG_ERROR([DBM storage support is required if not using NSS SQL storage])
|
||||
fi
|
||||
|
||||
if test -n "$NSS_SQLSTORE"; then
|
||||
AC_DEFINE(NSS_SQLSTORE)
|
||||
if test -n "$MOZ_SECURITY_SQLSTORE"; then
|
||||
AC_DEFINE(MOZ_SECURITY_SQLSTORE)
|
||||
fi
|
||||
|
||||
AC_SUBST(NSS_SQLSTORE)
|
||||
AC_SUBST(MOZ_SECURITY_SQLSTORE)
|
||||
|
||||
dnl =========================================================
|
||||
dnl = Don't fold mailnews related comps into libXUL
|
||||
|
|
|
|||
|
|
@ -1102,7 +1102,7 @@ InitializeNSS(const nsACString& dir, bool readOnly, bool loadPKCS11Modules)
|
|||
flags |= NSS_INIT_NOMODDB;
|
||||
}
|
||||
nsAutoCString dbTypeAndDirectory;
|
||||
#ifdef NSS_SQLSTORE
|
||||
#ifdef MOZ_SECURITY_SQLSTORE
|
||||
// Not strictly necessary with current NSS versions, but can't hurt to be explicit.
|
||||
dbTypeAndDirectory.Append("sql:");
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
#include "SharedSSLState.h"
|
||||
#include "cert.h"
|
||||
#include "certdb.h"
|
||||
#ifdef NSS_SQLSTORE
|
||||
#ifdef MOZ_SECURITY_SQLSTORE
|
||||
#include "mozStorageCID.h"
|
||||
#endif
|
||||
#include "mozilla/ArrayUtils.h"
|
||||
|
|
@ -1712,7 +1712,7 @@ GetNSSProfilePath(nsAutoCString& aProfilePath)
|
|||
("Could not get nsILocalFileWin for profile directory.\n"));
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
#ifdef NSS_SQLSTORE
|
||||
#ifdef MOZ_SECURITY_SQLSTORE
|
||||
// SQLite always takes UTF-8 file paths regardless of the current system
|
||||
// code page.
|
||||
nsAutoString u16ProfilePath;
|
||||
|
|
@ -1982,7 +1982,7 @@ nsNSSComponent::Init()
|
|||
return NS_ERROR_NOT_SAME_THREAD;
|
||||
}
|
||||
|
||||
#ifdef NSS_SQLSTORE
|
||||
#ifdef MOZ_SECURITY_SQLSTORE
|
||||
// To avoid an sqlite3_config race in NSS init, we require the storage service to get initialized first.
|
||||
nsCOMPtr<nsISupports> storageService = do_GetService(MOZ_STORAGE_SERVICE_CONTRACTID);
|
||||
if (!storageService) {
|
||||
|
|
|
|||
|
|
@ -2794,7 +2794,7 @@ XREMain::XRE_mainInit(bool* aExitFlag)
|
|||
// Reduce the number of rounds for debug builds for perf/test reasons.
|
||||
SaveToEnv("NSS_MAX_MP_PBE_ITERATION_COUNT=15");
|
||||
#else
|
||||
#ifdef NSS_SQLSTORE
|
||||
#ifdef MOZ_SECURITY_SQLSTORE
|
||||
// We're using SQL; NSS's defaults for rounds are fine.
|
||||
#else
|
||||
// Set default Master Password rounds to a sane value for DBM which is slower
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue