diff options
author | Kai Engert <kaie@kuix.de> | 2013-06-11 21:14:37 +0200 |
---|---|---|
committer | Kai Engert <kaie@kuix.de> | 2013-06-11 21:14:37 +0200 |
commit | d4128557f4a186c1bc7d16fa121f293c43353ac7 (patch) | |
tree | 523d92c477dca5dbc9603dde2d5fa4109270872e /cmd/ocspclnt | |
parent | 1e62b3cbbb3c71a6d269ae6a5215331ca813c894 (diff) | |
download | nss-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.c | 2 |
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); } |