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)

3.27
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: hkario, Assigned: ueno)

Details

Attachments

(1 file)

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'
Assignee: nobody → dueno
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached patch proposed patchSplinter Review
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 on attachment 8814398 [details] [diff] [review] proposed patch Review of attachment 8814398 [details] [diff] [review]: ----------------------------------------------------------------- r+ rrelyea
Attachment #8814398 - Flags: review?(rrelyea) → review+
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.
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.

Attachment

General

Created:
Updated:
Size: