Chromium Code Reviews
Description[Remoting Host] Select Latest Valid Cert
Currently TokenValidatorBase will always select the first certificate for
third-party authentication that matches the issuer but sometimes an incorrect
certificate will be selected.
This CL tries to improve this by:
* Not selecting certificate that is obviously expired (now > valid_expiry).
* Selecting the certificate with latest |valid_start| time.
* Selecting the certifiacte with latest |valid_expiry| time when |valid_start|
is the same.
BUG=646944
Committed: https://crrev.com/e4807badb80cef2a24ffd3fdb3b8c28859c65a5c
Cr-Commit-Position: refs/heads/master@{#422001}
Patch Set 1 #Patch Set 2 : Add condition for null valid_expiry #Patch Set 3 : Refactor comparison into function #
Total comments: 12
Patch Set 4 : Reviewer's Feedback #
Total comments: 1
Patch Set 5 : Add unittest #Patch Set 6 : Fix comment #
Total comments: 2
Patch Set 7 : Reviewer's Feedback #Patch Set 8 : Fix comments #Patch Set 9 : Remove the [valid_start, inf) case #
Messages
Total messages: 25 (14 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||