summaryrefslogtreecommitdiff
path: root/cmd/ocspclnt
diff options
context:
space:
mode:
authorKai Engert <kaie@kuix.de>2013-06-11 21:14:37 +0200
committerKai Engert <kaie@kuix.de>2013-06-11 21:14:37 +0200
commitd4128557f4a186c1bc7d16fa121f293c43353ac7 (patch)
tree523d92c477dca5dbc9603dde2d5fa4109270872e /cmd/ocspclnt
parent1e62b3cbbb3c71a6d269ae6a5215331ca813c894 (diff)
downloadnss-hg-d4128557f4a186c1bc7d16fa121f293c43353ac7.tar.gz
Bug 876352 - certutil: (a) Warn if importing PEM file with private key (b) fail if user attempts to import cert with requested "u" trust, r=rrelyea
Diffstat (limited to 'cmd/ocspclnt')
-rw-r--r--cmd/ocspclnt/ocspclnt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/ocspclnt/ocspclnt.c b/cmd/ocspclnt/ocspclnt.c
index ea2a4ce3a..e302bb5b8 100644
--- a/cmd/ocspclnt/ocspclnt.c
+++ b/cmd/ocspclnt/ocspclnt.c
@@ -485,7 +485,7 @@ find_certificate(CERTCertDBHandle *handle, const char *name, PRBool ascii)
return NULL;
}
- if (SECU_ReadDERFromFile(&der, certFile, ascii) == SECSuccess) {
+ if (SECU_ReadDERFromFile(&der, certFile, ascii, PR_FALSE) == SECSuccess) {
cert = CERT_DecodeCertFromPackage((char*)der.data, der.len);
SECITEM_FreeItem(&der, PR_FALSE);
}