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/p7sign | |
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/p7sign')
-rw-r--r-- | cmd/p7sign/p7sign.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/p7sign/p7sign.c b/cmd/p7sign/p7sign.c index df664df1c..1b93a8981 100644 --- a/cmd/p7sign/p7sign.c +++ b/cmd/p7sign/p7sign.c @@ -96,7 +96,8 @@ SignFile(FILE *outFile, PRFileDesc *inFile, CERTCertificate *cert, return -1; /* suck the file in */ - if (SECU_ReadDERFromFile(&data2sign, inFile, PR_FALSE) != SECSuccess) + if (SECU_ReadDERFromFile(&data2sign, inFile, PR_FALSE, + PR_FALSE) != SECSuccess) return -1; if (!encapsulated) { |