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

Side by Side Diff: chrome/browser/net/cert_logger.proto

Issue 1117173005: Include cert status in invalid certificate reports (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove unnecessary namespace Created 5 years, 7 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // This protobuffer is intended to store reports from Chrome users of 5 // This protobuffer is intended to store reports from Chrome users of
6 // certificate errors. A report will be sent from Chrome when it gets 6 // certificate errors. A report will be sent from Chrome when it gets
7 // e.g. a certificate for google.com that chains up to a root CA not expected by 7 // e.g. a certificate for google.com that chains up to a root CA not expected by
8 // Chrome for that origin, such as DigiNotar (compromised in July 2011), or 8 // Chrome for that origin, such as DigiNotar (compromised in July 2011), or
9 // other pinning errors such as a blacklisted cert in the chain, or 9 // other pinning errors such as a blacklisted cert in the chain, or
10 // (when opted in) other certificate validation errors like an expired 10 // (when opted in) other certificate validation errors like an expired
(...skipping 21 matching lines...) Expand all
32 required string cert_chain = 2; 32 required string cert_chain = 2;
33 // The time (in usec since the epoch) when the client attempted to access the 33 // The time (in usec since the epoch) when the client attempted to access the
34 // site generating the pinning error. 34 // site generating the pinning error.
35 required int64 time_usec = 3; 35 required int64 time_usec = 3;
36 // public_key_hash contains the string forms of the hashes calculated for 36 // public_key_hash contains the string forms of the hashes calculated for
37 // the chain. (I.e. "sha1/<base64 data>".) 37 // the chain. (I.e. "sha1/<base64 data>".)
38 repeated string public_key_hash = 4; 38 repeated string public_key_hash = 4;
39 // pin contains the string forms of the pins that were matched against for 39 // pin contains the string forms of the pins that were matched against for
40 // this host. 40 // this host.
41 repeated string pin = 5; 41 repeated string pin = 5;
42
43 enum CertError {
44 ERR_CERT_REVOKED = 1;
45 ERR_CERT_INVALID = 2;
46 ERR_SSL_PINNED_KEY_NOT_IN_CERT_CHAIN = 3;
47 ERR_CERT_AUTHORITY_INVALID = 4;
48 ERR_CERT_COMMON_NAME_INVALID = 5;
49 ERR_CERT_NAME_CONSTRAINT_VIOLATION = 6;
50 ERR_CERT_WEAK_SIGNATURE_ALGORITHM = 7;
51 ERR_CERT_WEAK_KEY = 8;
52 ERR_CERT_DATE_INVALID = 9;
53 ERR_CERT_VALIDITY_TOO_LONG = 10;
54 ERR_CERT_UNABLE_TO_CHECK_REVOCATION = 11;
55 ERR_CERT_NO_REVOCATION_MECHANISM = 12;
56 ERR_CERT_NON_UNIQUE_NAME = 13;
57 };
58
59 // Certificate errors encountered (if any) when validating this
60 // certificate chain.
61 repeated CertError cert_error = 6;
42 }; 62 };
43 63
44 // A wrapper proto containing an encrypted CertLoggerRequest 64 // A wrapper proto containing an encrypted CertLoggerRequest
45 message EncryptedCertLoggerRequest { 65 message EncryptedCertLoggerRequest {
46 // An encrypted, serialized CertLoggerRequest 66 // An encrypted, serialized CertLoggerRequest
47 required bytes encrypted_report = 1; 67 required bytes encrypted_report = 1;
48 // The server public key version that was used to derive the shared secret. 68 // The server public key version that was used to derive the shared secret.
49 required uint32 server_public_key_version = 2; 69 required uint32 server_public_key_version = 2;
50 // The client public key that corresponds to the private key that was used 70 // The client public key that corresponds to the private key that was used
51 // to derive the shared secret. 71 // to derive the shared secret.
(...skipping 12 matching lines...) Expand all
64 enum ResponseCode { 84 enum ResponseCode {
65 OK = 1; 85 OK = 1;
66 MALFORMED_CERT_DATA = 2; 86 MALFORMED_CERT_DATA = 2;
67 HOST_CERT_DONT_MATCH = 3; 87 HOST_CERT_DONT_MATCH = 3;
68 ROOT_NOT_RECOGNIZED = 4; 88 ROOT_NOT_RECOGNIZED = 4;
69 ROOT_NOT_UNEXPECTED = 5; 89 ROOT_NOT_UNEXPECTED = 5;
70 OTHER_ERROR = 6; 90 OTHER_ERROR = 6;
71 }; 91 };
72 required ResponseCode response = 1; 92 required ResponseCode response = 1;
73 }; 93 };
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/net/certificate_error_reporter.cc » ('j') | chrome/browser/net/certificate_error_reporter.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698