diff options
author | Kai Engert <kaie@kuix.de> | 2016-01-29 11:59:33 +0100 |
---|---|---|
committer | Kai Engert <kaie@kuix.de> | 2016-01-29 11:59:33 +0100 |
commit | cd1cbf4a7f4577ad57790747ae42b7e0a60dae69 (patch) | |
tree | 2362acac8ca1f507579c02753758c1ed0d15ef0e /cmd/signtool | |
parent | 9bc937bbc2de75f450bfc2b4ab2c796f6efddda9 (diff) | |
download | nss-hg-cd1cbf4a7f4577ad57790747ae42b7e0a60dae69.tar.gz |
Bug 1194680, Use PR_GetEnvSecure, r=jldNSS_3_23_BETA1
Diffstat (limited to 'cmd/signtool')
-rw-r--r-- | cmd/signtool/javascript.c | 2 | ||||
-rw-r--r-- | cmd/signtool/util.c | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/cmd/signtool/javascript.c b/cmd/signtool/javascript.c index 3beffa522..bbaa93999 100644 --- a/cmd/signtool/javascript.c +++ b/cmd/signtool/javascript.c @@ -64,7 +64,7 @@ InlineJavaScript(char *dir, PRBool recurse) PR_fprintf(outputFD, "\nGenerating inline signatures from HTML files in: %s\n", dir); } - if (PR_GetEnv("SIGNTOOL_DUMP_PARSE")) { + if (PR_GetEnvSecure("SIGNTOOL_DUMP_PARSE")) { dumpParse = PR_TRUE; } diff --git a/cmd/signtool/util.c b/cmd/signtool/util.c index 73568d1ba..74055d681 100644 --- a/cmd/signtool/util.c +++ b/cmd/signtool/util.c @@ -5,6 +5,7 @@ #include "signtool.h" #include "prio.h" #include "prmem.h" +#include "prenv.h" #include "nss.h" static int is_dir (char *filename); @@ -981,7 +982,7 @@ char *get_default_cert_dir (void) static char db [FNSIZE]; #ifdef XP_UNIX - home = getenv ("HOME"); + home = PR_GetEnvSecure ("HOME"); if (home && *home) { sprintf (db, "%s/.netscape", home); @@ -994,7 +995,7 @@ char *get_default_cert_dir (void) /* first check the environment override */ - home = getenv ("JAR_HOME"); + home = PR_GetEnvSecure ("JAR_HOME"); if (home && *home) { sprintf (db, "%s/cert7.db", home); |