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

Side by Side Diff: net/base/test_certificate_data.h

Issue 10790129: net: fix a couple of broken certificate tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 namespace { 5 namespace {
6 6
7 // This is the SHA1 hash of the SubjectPublicKeyInfo of nist.der. 7 // This is the SHA1 hash of the SubjectPublicKeyInfo of nist.der.
8 static const char kNistSPKIHash[] = 8 static const char kNistSPKIHash[] =
9 "\x15\x60\xde\x65\x4e\x03\x9f\xd0\x08\x82" 9 "\x15\x60\xde\x65\x4e\x03\x9f\xd0\x08\x82"
10 "\xa9\x6a\xc4\x65\x8e\x6f\x92\x06\x84\x35"; 10 "\xa9\x6a\xc4\x65\x8e\x6f\x92\x06\x84\x35";
11 11
12 // kCertSESPKIs contains the SHA1 hashes of the SPKIs of the certse.pem
13 // certificate chain, in order.
14 static const char kCertSESPKIs[3][21] = {
15 "\x3f\x6c\xf3\xf1\xc9\xdf\xb6\x63\xa8\x05"
16 "\x44\x75\x9a\xac\x21\x4a\x74\xb2\xa5\xa4",
17 "\xae\x4a\xd7\xf9\xb3\x80\xe1\x12\x93\x32"
18 "\xbb\x52\xde\x5a\x09\x0c\x52\x1b\x33\xd0",
19 "\xb1\x81\x08\x1a\x19\xa4\xc0\x94\x1f\xfa"
20 "\xe8\x95\x28\xc1\x24\xc9\x9b\x34\xac\xc7",
21 };
22
12 // Certificates for test data. They're obtained with: 23 // Certificates for test data. They're obtained with:
13 // 24 //
14 // $ openssl s_client -connect [host]:443 -showcerts > /tmp/host.pem < /dev/null 25 // $ openssl s_client -connect [host]:443 -showcerts > /tmp/host.pem < /dev/null
15 // $ openssl x509 -inform PEM -outform DER < /tmp/host.pem > /tmp/host.der 26 // $ openssl x509 -inform PEM -outform DER < /tmp/host.pem > /tmp/host.der
16 // $ xxd -i /tmp/host.der 27 // $ xxd -i /tmp/host.der
17 // 28 //
18 // TODO(wtc): move these certificates to data files in the 29 // TODO(wtc): move these certificates to data files in the
19 // src/net/data/ssl/certificates directory. 30 // src/net/data/ssl/certificates directory.
20 31
21 // The linux compiler is nitty about unused variables. Declaring variables 32 // The linux compiler is nitty about unused variables. Declaring variables
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 0x90, 0x1d, 0xae, 0xbb, 0x4a, 0xd7, 0xb9, 0xdc, 0x88, 0x9e, 0x37, 0x78, 463 0x90, 0x1d, 0xae, 0xbb, 0x4a, 0xd7, 0xb9, 0xdc, 0x88, 0x9e, 0x37, 0x78,
453 0x41, 0x5b, 0xf7, 0x82, 0xa5, 0xf2, 0xba, 0x41, 0x25, 0x5a, 0x90, 0x1a, 464 0x41, 0x5b, 0xf7, 0x82, 0xa5, 0xf2, 0xba, 0x41, 0x25, 0x5a, 0x90, 0x1a,
454 0x1e, 0x45, 0x38, 0xa1, 0x52, 0x58, 0x75, 0x94, 0x26, 0x44, 0xfb, 0x20, 465 0x1e, 0x45, 0x38, 0xa1, 0x52, 0x58, 0x75, 0x94, 0x26, 0x44, 0xfb, 0x20,
455 0x07, 0xba, 0x44, 0xcc, 0xe5, 0x4a, 0x2d, 0x72, 0x3f, 0x98, 0x47, 0xf6, 466 0x07, 0xba, 0x44, 0xcc, 0xe5, 0x4a, 0x2d, 0x72, 0x3f, 0x98, 0x47, 0xf6,
456 0x26, 0xdc, 0x05, 0x46, 0x05, 0x07, 0x63, 0x21, 0xab, 0x46, 0x9b, 0x9c, 467 0x26, 0xdc, 0x05, 0x46, 0x05, 0x07, 0x63, 0x21, 0xab, 0x46, 0x9b, 0x9c,
457 0x78, 0xd5, 0x54, 0x5b, 0x3d, 0x0c, 0x1e, 0xc8, 0x64, 0x8c, 0xb5, 0x50, 468 0x78, 0xd5, 0x54, 0x5b, 0x3d, 0x0c, 0x1e, 0xc8, 0x64, 0x8c, 0xb5, 0x50,
458 0x23, 0x82, 0x6f, 0xdb, 0xb8, 0x22, 0x1c, 0x43, 0x96, 0x07, 0xa8, 0xbb 469 0x23, 0x82, 0x6f, 0xdb, 0xb8, 0x22, 0x1c, 0x43, 0x96, 0x07, 0xa8, 0xbb
459 }; 470 };
460 471
461 } // namespace 472 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698