Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Issue 1720653002: Add new functions to handle UPN and email addresses (Closed)

Created:
4 years, 10 months ago by Kevin Cernekee
Modified:
4 years, 9 months ago
Reviewers:
stevenjb, Ryan Sleevi
CC:
chromium-reviews, darin-cc_chromium.org, cbentzel+watch_chromium.org, jam, pfeldman, devtools-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add new functions to handle UPN and email addresses The existing code only handles SAN fields that are useful for verifying website certificates (hostnames + IPs). For CrOS wifi certs we also need to read out email addresses and Microsoft UPN fields. BUG=549659 TEST=`./out/Debug/net_unittests --gtest_filter="X509CertificateTest*"` Committed: https://crrev.com/fca855226530609db4ec4400a83cf5339ae5c1e6 Cr-Commit-Position: refs/heads/master@{#378799}

Patch Set 1 #

Patch Set 2 : Add UPN support; split into a separate function #

Patch Set 3 : Don't squash 10 other commits into the same CL #

Total comments: 14

Patch Set 4 : incorporate code review feedback #

Patch Set 5 : add NOTREACHED() for impossible enum case #

Total comments: 2

Patch Set 6 : rename function; reorder NET_EXPORT #

Total comments: 14

Patch Set 7 : incorporate code review feedback #

Patch Set 8 : add unit tests #

Patch Set 9 : fix ios build breakage #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -1 line) Patch
M net/cert/x509_certificate_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +24 lines, -0 lines 0 comments Download
M net/cert/x509_util_nss.h View 1 2 3 4 5 6 1 chunk +34 lines, -1 line 0 comments Download
M net/cert/x509_util_nss_certs.cc View 1 2 3 4 5 6 2 chunks +72 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (12 generated)
Kevin Cernekee
I'll add test cases once we agree on the general concept. The hardcoded OID string ...
4 years, 10 months ago (2016-02-26 04:23:06 UTC) #4
Ryan Sleevi
Thanks for taking this on; I'm not a fan of this approach in general, but ...
4 years, 9 months ago (2016-02-27 00:29:34 UTC) #5
Ryan Sleevi
https://codereview.chromium.org/1720653002/diff/40001/net/cert/x509_certificate.h File net/cert/x509_certificate.h (right): https://codereview.chromium.org/1720653002/diff/40001/net/cert/x509_certificate.h#newcode143 net/cert/x509_certificate.h:143: SAN_URI, Concrete reasons I don't like this: Exposing RFC ...
4 years, 9 months ago (2016-02-27 00:38:45 UTC) #6
Kevin Cernekee
https://codereview.chromium.org/1720653002/diff/40001/net/cert/x509_certificate.h File net/cert/x509_certificate.h (right): https://codereview.chromium.org/1720653002/diff/40001/net/cert/x509_certificate.h#newcode143 net/cert/x509_certificate.h:143: SAN_URI, On 2016/02/27 00:38:45, Ryan Sleevi wrote: > Concrete ...
4 years, 9 months ago (2016-02-27 19:06:24 UTC) #7
stevenjb
https://codereview.chromium.org/1720653002/diff/80001/net/cert/x509_util_nss.h File net/cert/x509_util_nss.h (right): https://codereview.chromium.org/1720653002/diff/80001/net/cert/x509_util_nss.h#newcode63 net/cert/x509_util_nss.h:63: std::vector<std::string>* names); Avoid having two identical function names with ...
4 years, 9 months ago (2016-02-29 22:05:03 UTC) #10
Kevin Cernekee
https://codereview.chromium.org/1720653002/diff/80001/net/cert/x509_util_nss.h File net/cert/x509_util_nss.h (right): https://codereview.chromium.org/1720653002/diff/80001/net/cert/x509_util_nss.h#newcode63 net/cert/x509_util_nss.h:63: std::vector<std::string>* names); On 2016/02/29 22:05:03, stevenjb wrote: > Avoid ...
4 years, 9 months ago (2016-02-29 22:52:01 UTC) #12
stevenjb
lgtm fwiw (but not an owner)
4 years, 9 months ago (2016-02-29 22:59:50 UTC) #13
Ryan Sleevi
https://codereview.chromium.org/1720653002/diff/100001/net/cert/x509_util_nss.h File net/cert/x509_util_nss.h (right): https://codereview.chromium.org/1720653002/diff/100001/net/cert/x509_util_nss.h#newcode34 net/cert/x509_util_nss.h:34: // Name). While not wanting to seem too aggressive ...
4 years, 9 months ago (2016-03-01 00:28:29 UTC) #14
Kevin Cernekee
https://codereview.chromium.org/1720653002/diff/100001/net/cert/x509_util_nss.h File net/cert/x509_util_nss.h (right): https://codereview.chromium.org/1720653002/diff/100001/net/cert/x509_util_nss.h#newcode34 net/cert/x509_util_nss.h:34: // Name). On 2016/03/01 00:28:28, Ryan Sleevi wrote: > ...
4 years, 9 months ago (2016-03-01 19:28:01 UTC) #15
Ryan Sleevi
Now you just need unit tests - that you can extract rfc822Name and that you ...
4 years, 9 months ago (2016-03-01 21:31:16 UTC) #17
Kevin Cernekee
4 years, 9 months ago (2016-03-02 05:10:35 UTC) #19
Ryan Sleevi
lgtm
4 years, 9 months ago (2016-03-02 19:18:54 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1720653002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1720653002/160001
4 years, 9 months ago (2016-03-02 19:24:41 UTC) #23
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 9 months ago (2016-03-02 19:33:59 UTC) #25
commit-bot: I haz the power
4 years, 9 months ago (2016-03-02 19:35:20 UTC) #27
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/fca855226530609db4ec4400a83cf5339ae5c1e6
Cr-Commit-Position: refs/heads/master@{#378799}

Powered by Google App Engine
This is Rietveld 408576698