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

Unified Diff: net/base/x509_util_nss.h

Issue 11579002: Add X509Certificate::IsIssuedByEncoded() (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add missing base files (damn you git cl upload) Created 8 years 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/base/x509_util_nss.h
diff --git a/net/base/x509_util_nss.h b/net/base/x509_util_nss.h
index f00c4abbf3d90f4bf06bce9d75bee61db975737a..713a7ff415e7bc901b8fbe7ff87761634e20dc7b 100644
--- a/net/base/x509_util_nss.h
+++ b/net/base/x509_util_nss.h
@@ -70,6 +70,16 @@ X509Certificate::OSCertHandle ReadOSCertHandleFromPickle(
void GetPublicKeyInfo(CERTCertificate* handle,
size_t* size_bits,
X509Certificate::PublicKeyType* type);
+
+// Returns true if |name| is listed in |valid_issuers|
+// |name| is a SECItem corresponding to a DER-encoded X.509
+// DistinguishedName.
+// |valid_issuers| is a list of strings, where each string contains also
+// a DER-encoded X.509 DN.
+bool IsCertNameItemInIssuerList(
+ SECItem* name,
Ryan Sleevi 2012/12/13 19:49:05 see comments in iOS about making this a CERTName a
+ const std::vector<std::string>& valid_issuers);
Ryan Sleevi 2012/12/13 19:49:05 Perhaps rather then passing a single SECItem for a
digit1 2012/12/14 17:54:33 Yes, I've actually changed the function to take a
Ryan Sleevi 2012/12/14 18:16:42 That works too
+
#endif // defined(USE_NSS) || defined(OS_IOS)
} // namespace x509_util

Powered by Google App Engine
This is Rietveld 408576698