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

Unified Diff: net/cert/x509_certificate_nss.cc

Issue 1720653002: Add new functions to handle UPN and email addresses (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't squash 10 other commits into the same CL Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/cert/x509_certificate_nss.cc
diff --git a/net/cert/x509_certificate_nss.cc b/net/cert/x509_certificate_nss.cc
index 14c8889eb2018e62207824b53ad9f276f0724481..c0cd7bdd72207af680f4975ca5ba9a3a863f2539 100644
--- a/net/cert/x509_certificate_nss.cc
+++ b/net/cert/x509_certificate_nss.cc
@@ -121,6 +121,11 @@ void X509Certificate::GetSubjectAltName(
x509_util::GetSubjectAltName(cert_handle_, dns_names, ip_addrs);
}
+void X509Certificate::GetSubjectAltName(SubjectAltNameType type,
+ std::vector<std::string>* names) const {
+ x509_util::GetSubjectAltName(cert_handle_, type, names);
+}
+
bool X509Certificate::IsIssuedByEncoded(
const std::vector<std::string>& valid_issuers) {
// Get certificate chain as scoped list of CERTCertificate objects.

Powered by Google App Engine
This is Rietveld 408576698