summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbiswatosh.chakraborty%sun.com <devnull@localhost>2007-04-05 15:09:25 +0000
committerbiswatosh.chakraborty%sun.com <devnull@localhost>2007-04-05 15:09:25 +0000
commit34a7f0bdb0df6948916b23de6a9ac0ab45338df3 (patch)
tree4b3d2177bf867a59745a00e3d6ba84e0da1b2bfb
parent02d51cff378da68cd7edaa5eeca7d75278c6cd89 (diff)
downloadnss-hg-34a7f0bdb0df6948916b23de6a9ac0ab45338df3.tar.gz
For Bug Id 162748.
-rw-r--r--security/nss/cmd/signtool/util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/security/nss/cmd/signtool/util.c b/security/nss/cmd/signtool/util.c
index 32d4e8724..7a2166f9e 100644
--- a/security/nss/cmd/signtool/util.c
+++ b/security/nss/cmd/signtool/util.c
@@ -823,7 +823,10 @@ InitCrypto(char *cert_dir, PRBool readOnly)
if (password) {
PK11_SetPasswordFunc(pk11_password_hardcode);
+ } else {
+ PK11_SetPasswordFunc(SECU_GetModulePassword);
}
+
/* Must login to FIPS before you do anything else */
if (PK11_IsFIPS()) {