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

Unified Diff: net/base/test_certificate_data.h

Issue 9553014: Move certificate verification tests from X509CertificateTest to CertVerifyProcTest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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/base/test_certificate_data.h
diff --git a/net/base/test_certificate_data.h b/net/base/test_certificate_data.h
index ffb2eba16742492fa42e2d113c08eeb9042fb9fe..1109aa4d4c13aefdaa20f7d5ff83fadb4771a2b2 100644
--- a/net/base/test_certificate_data.h
+++ b/net/base/test_certificate_data.h
@@ -4,6 +4,11 @@
namespace {
+// This is the SHA1 hash of the SubjectPublicKeyInfo of nist.der.
+static const char nistSPKIHash[] =
wtc 2012/03/06 23:26:54 Nit: this constant should be named with a k: kNist
Ryan Sleevi 2012/03/10 03:30:56 I'll fix it in a follow-up.
+ "\x15\x60\xde\x65\x4e\x03\x9f\xd0\x08\x82"
+ "\xa9\x6a\xc4\x65\x8e\x6f\x92\x06\x84\x35";
+
// Certificates for test data. They're obtained with:
//
// $ openssl s_client -connect [host]:443 -showcerts > /tmp/host.pem < /dev/null

Powered by Google App Engine
This is Rietveld 408576698