summaryrefslogtreecommitdiff
path: root/cmd/signtool
diff options
context:
space:
mode:
authorDennis Jackson <djackson@mozilla.com>2023-03-03 21:43:37 +0000
committerDennis Jackson <djackson@mozilla.com>2023-03-03 21:43:37 +0000
commitfcdd8f6f67f6e8456b3e24e7b32e66dd1d3766fa (patch)
treef9122d37362061e4a4a51620707f24b27ccb15e0 /cmd/signtool
parent9c96685d30a7e4be01688d593414035761bafa98 (diff)
downloadnss-hg-fcdd8f6f67f6e8456b3e24e7b32e66dd1d3766fa.tar.gz
Bug 1820175 - Fix various compiler warnings in NSS. r=jschanck.
Differential Revision: https://phabricator.services.mozilla.com/D171581
Diffstat (limited to 'cmd/signtool')
-rw-r--r--cmd/signtool/util.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/cmd/signtool/util.c b/cmd/signtool/util.c
index ecd22e39c..a2637a74e 100644
--- a/cmd/signtool/util.c
+++ b/cmd/signtool/util.c
@@ -430,51 +430,9 @@ out_of_memory(void)
void
VerifyCertDir(char *dir, char *keyName)
{
- char fn[FNSIZE];
-
- /* don't try verifying if we don't have a local directory */
- if (strncmp(dir, "multiaccess:", sizeof("multiaccess:") - 1) == 0) {
- return;
- }
/* this function is truly evil. Tools and applications should not have
* any knowledge of actual cert databases! */
return;
-
- /* This code is really broken because it makes underlying assumptions about
- * how the NSS profile directory is laid out, but these names can change
- * from release to release. */
- sprintf(fn, "%s/cert8.db", dir);
-
- if (PR_Access(fn, PR_ACCESS_EXISTS)) {
- PR_fprintf(errorFD, "%s: No certificate database in \"%s\"\n",
- PROGRAM_NAME, dir);
- PR_fprintf(errorFD, "%s: Check the -d arguments that you gave\n",
- PROGRAM_NAME);
- errorCount++;
- exit(ERRX);
- }
-
- if (verbosity >= 0) {
- PR_fprintf(outputFD, "using certificate directory: %s\n", dir);
- }
-
- if (keyName == NULL)
- return;
-
- /* if the user gave the -k key argument, verify that
- a key database already exists */
-
- sprintf(fn, "%s/key3.db", dir);
-
- if (PR_Access(fn, PR_ACCESS_EXISTS)) {
- PR_fprintf(errorFD, "%s: No private key database in \"%s\"\n",
- PROGRAM_NAME,
- dir);
- PR_fprintf(errorFD, "%s: Check the -d arguments that you gave\n",
- PROGRAM_NAME);
- errorCount++;
- exit(ERRX);
- }
}
/*