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

Side by Side Diff: net/cert/ev_root_ca_metadata.cc

Issue 2607183002: Move ev_root_ca_metadata to read-only data segment (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "net/cert/ev_root_ca_metadata.h" 5 #include "net/cert/ev_root_ca_metadata.h"
6 6
7 #if defined(USE_NSS_CERTS) 7 #if defined(USE_NSS_CERTS)
8 #include <cert.h> 8 #include <cert.h>
9 #include <pkcs11n.h> 9 #include <pkcs11n.h>
10 #include <secerr.h> 10 #include <secerr.h>
(...skipping 23 matching lines...) Expand all
34 // CA's policy OID under the cross-signing root. 34 // CA's policy OID under the cross-signing root.
35 static const size_t kMaxOIDsPerCA = 2; 35 static const size_t kMaxOIDsPerCA = 2;
36 // This is the maximum length of an OID string (including the trailing NUL). 36 // This is the maximum length of an OID string (including the trailing NUL).
37 static const size_t kMaxOIDLength = 32; 37 static const size_t kMaxOIDLength = 32;
38 38
39 // The SHA-1 fingerprint of the root CA certificate, used as a unique 39 // The SHA-1 fingerprint of the root CA certificate, used as a unique
40 // identifier for a root CA certificate. 40 // identifier for a root CA certificate.
41 SHA1HashValue fingerprint; 41 SHA1HashValue fingerprint;
42 42
43 // The EV policy OIDs of the root CA. 43 // The EV policy OIDs of the root CA.
44 const char policy_oids[kMaxOIDsPerCA][kMaxOIDLength]; 44 char policy_oids[kMaxOIDsPerCA][kMaxOIDLength];
45 }; 45 };
46 46
47 static const EVMetadata ev_root_ca_metadata[] = { 47 static const EVMetadata ev_root_ca_metadata[] = {
48 // AC Camerfirma S.A. Chambers of Commerce Root - 2008 48 // AC Camerfirma S.A. Chambers of Commerce Root - 2008
49 // https://www.camerfirma.com 49 // https://www.camerfirma.com
50 { 50 {
51 {{0x78, 0x6a, 0x74, 0xac, 0x76, 0xab, 0x14, 0x7f, 0x9c, 0x6a, 51 {{0x78, 0x6a, 0x74, 0xac, 0x76, 0xab, 0x14, 0x7f, 0x9c, 0x6a,
52 0x30, 0x50, 0xba, 0x9e, 0xa8, 0x7e, 0xfe, 0x9a, 0xce, 0x3c}}, 52 0x30, 0x50, 0xba, 0x9e, 0xa8, 0x7e, 0xfe, 0x9a, 0xce, 0x3c}},
53 { 53 {
54 // AC Camerfirma uses the last two arcs to track how the private key 54 // AC Camerfirma uses the last two arcs to track how the private key
(...skipping 824 matching lines...) Expand 10 before | Expand all | Expand 10 after
879 ev_policy_[metadata.fingerprint].push_back(policy_der); 879 ev_policy_[metadata.fingerprint].push_back(policy_der);
880 policy_oids_.insert(policy_der); 880 policy_oids_.insert(policy_der);
881 } 881 }
882 } 882 }
883 #endif 883 #endif
884 } 884 }
885 885
886 EVRootCAMetadata::~EVRootCAMetadata() { } 886 EVRootCAMetadata::~EVRootCAMetadata() { }
887 887
888 } // namespace net 888 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698