Closed Bug 1678470 Opened 5 years ago Closed 4 years ago

convert the serialization version of TransportSecurityInfo to an integer

Categories

(Core :: Security: PSM, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
87 Branch
Tracking Status
firefox87 --- fixed

People

(Reporter: keeler, Assigned: mbirghan)

Details

(Whiteboard: [psm-cleanup])

Attachments

(1 file)

TransportSecurityInfo::Read has a number of lines like this:

  if (!serVersion.EqualsASCII("1") && !serVersion.EqualsASCII("2") &&
      !serVersion.EqualsASCII("3") && !serVersion.EqualsASCII("4") &&
      !serVersion.EqualsASCII("5")) {

This is cumbersome and potentially error-prone. Perhaps we should parse an integer out of serVersion and use that instead.

Assignee: nobody → mbirghan
Pushed by archaeopteryx@coole-files.de: https://hg.mozilla.org/integration/autoland/rev/541d65cf0346 convert the serialization version of TransportSecurityInfo to an integer. r=keeler
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: