Skip to content

Commit

Permalink
Bug 1377940, Change NSS default storage file format (currently DBM), …
Browse files Browse the repository at this point in the history
…when no prefix is given, to SQL, r=rrelyea, r=fkiefer
  • Loading branch information
kaie committed Nov 24, 2017
1 parent 3fcb36c commit 33b114e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
6 changes: 1 addition & 5 deletions lib/util/utilpars.c
Expand Up @@ -1110,12 +1110,8 @@ _NSSUTIL_EvaluateConfigDir(const char *configdir,
NSSDBType dbType;
PRBool checkEnvDefaultDB = PR_FALSE;
*appName = NULL;
/* force the default */
#ifdef NSS_DISABLE_DBM
/* force the default */
dbType = NSS_DB_TYPE_SQL;
#else
dbType = NSS_DB_TYPE_LEGACY;
#endif
if (configdir == NULL) {
checkEnvDefaultDB = PR_TRUE;
} else if (PORT_Strncmp(configdir, MULTIACCESS, sizeof(MULTIACCESS) - 1) == 0) {
Expand Down
5 changes: 4 additions & 1 deletion tests/all.sh
Expand Up @@ -111,6 +111,8 @@ RUN_FIPS=""
########################################################################
run_tests()
{
echo "Running test cycle: ${TEST_MODE} ----------------------"
echo "List of tests that will be executed: ${TESTS}"
for TEST in ${TESTS}
do
# NOTE: the spaces are important. If you don't include
Expand Down Expand Up @@ -172,8 +174,9 @@ run_cycle_pkix()
NSS_SSL_TESTS=`echo "${NSS_SSL_TESTS}" | sed -e "s/normal//g" -e "s/fips//g" -e "s/_//g"`
export -n NSS_SSL_RUN

# use the default format
# use the default format. (unset for the shell, export -n for binaries)
export -n NSS_DEFAULT_DB_TYPE
unset NSS_DEFAULT_DB_TYPE

run_tests
}
Expand Down
2 changes: 1 addition & 1 deletion tests/merge/merge.sh
Expand Up @@ -98,7 +98,7 @@ merge_init()
# are dbm databases.
if [ "${TEST_MODE}" = "UPGRADE_DB" ]; then
save=${NSS_DEFAULT_DB_TYPE}
NSS_DEFAULT_DB_TYPE= ; export NSS_DEFAULT_DB_TYPE
NSS_DEFAULT_DB_TYPE=dbm ; export NSS_DEFAULT_DB_TYPE
fi

certutil -N -d ${CONFLICT1DIR} -f ${R_PWFILE}
Expand Down

0 comments on commit 33b114e

Please sign in to comment.