summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbiswatosh.chakraborty%sun.com <devnull@localhost>2007-04-17 16:40:05 +0000
committerbiswatosh.chakraborty%sun.com <devnull@localhost>2007-04-17 16:40:05 +0000
commit45105225a2252b61b132b02d8a370a88f557f16a (patch)
tree950827164546a0b2837d267be615ad7ec3a9c722
parent6a40c77d41e67c16b7d4cb813d6cb84490da9abf (diff)
downloadnss-hg-45105225a2252b61b132b02d8a370a88f557f16a.tar.gz
This is for Bug Id: 162748
Reviewer: Nelson Bolyard With this patch, signtool will succeed even when -p option is absent
-rw-r--r--security/nss/cmd/signtool/util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/security/nss/cmd/signtool/util.c b/security/nss/cmd/signtool/util.c
index 32d4e8724..552fca599 100644
--- a/security/nss/cmd/signtool/util.c
+++ b/security/nss/cmd/signtool/util.c
@@ -823,6 +823,8 @@ 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 */