Closed
Bug 1319856
Opened 9 years ago
Closed 9 years ago
Crypto policy configuration files require empty line at end of file
Categories
(NSS :: Libraries, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
3.29
People
(Reporter: hkario, Assigned: ueno)
Details
Attachments
(1 file)
|
1.55 KB,
patch
|
rrelyea
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0
Build ID: 20161114215630
Steps to reproduce:
Created a crypto-policy file that disallows sha1 signatures:
cat > policy.txt <<EOF
library=
name=Policy
NSS=flags=policyOnly,moduleDB
config="disallow=sha1"
EOF'
Actual results:
SHA-1 signatures were still accepted by tstclnt and selfserv
Expected results:
the policy file should have the same meaning if it includes the empty line at the end of a single section as well as when it excludes it.
IOW, this works as expected:
cat > policy.txt <<EOF
library=
name=Policy
NSS=flags=policyOnly,moduleDB
config="disallow=sha1"
EOF'
Updated•9 years ago
|
Assignee: nobody → dueno
Updated•9 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
| Assignee | ||
Comment 1•9 years ago
|
||
This patch changes the pkcs11.txt parser, which is also used for parsing policy files, to recognize the final stanza even if it doesn't end with an empty newline.
Attachment #8814398 -
Flags: review?(rrelyea)
Comment 2•9 years ago
|
||
Comment on attachment 8814398 [details] [diff] [review]
proposed patch
Review of attachment 8814398 [details] [diff] [review]:
-----------------------------------------------------------------
r+ rrelyea
Attachment #8814398 -
Flags: review?(rrelyea) → review+
Comment 3•9 years ago
|
||
Bob, Daiki,
since Daiki doesn't have commit access yet, either the reviewer must do the commit, or if they don't do it, you must remember to explicitly ask someone with access to do the commit.
Comment 4•9 years ago
|
||
Comment 5•9 years ago
|
||
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → 3.29
You need to log in
before you can comment on or make changes to this bug.
Description
•