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

Side by Side Diff: net/extras/cert/proto/cert_verification.proto

Issue 2021433004: Cert - protobufs to serialize and deserialize CertVerifierCache. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Add_support_for_walking_1999733002
Patch Set: Added histogram for cache size Created 4 years, 6 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 syntax = "proto2";
6
7 option optimize_for = LITE_RUNTIME;
8
9 package net;
10
11 message CertVerificationSHA1HashValue {
Ryan Sleevi 2016/05/30 18:37:20 Unused?
ramant (doing other things) 2016/06/01 16:29:22 Done.
12 optional bytes data = 1;
13 };
14
15 message CertVerificationCertificate {
16 // Each unique certficate gets an unique number.
Ryan Sleevi 2016/05/30 18:37:19 This doesn't seem like a really good comment - and
ramant (doing other things) 2016/06/01 16:29:22 Took a cut at the comment. Done.
17 repeated uint32 cert_numbers = 1;
18 };
19
20 // Protobuf for input parameters of a certificate verification request.
21 message CertVerificationRequestParams {
22 // Each unique certficate gets an unique number.
23 optional CertVerificationCertificate certificate = 1;
24 optional string hostname = 2;
25 optional int32 flags = 3;
26 optional string ocsp_response = 4;
27 // Each unique certficate gets an unique number.
28 repeated CertVerificationCertificate additional_trust_anchors = 5;
29 };
30
31 // Protobuf for the result of certificate verification.
32 message CertVerificationResult {
33 optional CertVerificationCertificate verified_cert = 1;
34
35 optional uint32 cert_status = 2;
36
37 // Properties of the certificate chain.
38 optional bool has_md2 = 3;
39 optional bool has_md4 = 4;
40 optional bool has_md5 = 5;
41 optional bool has_sha1 = 6;
42 optional bool has_sha1_leaf = 7;
43
44 repeated string public_key_hashes = 8;
45 optional bool is_issued_by_known_root = 9;
46
47 optional bool is_issued_by_additional_trust_anchor = 10;
48
Ryan Sleevi 2016/05/30 18:37:19 Weird style here for whitespace
ramant (doing other things) 2016/06/01 16:29:22 Done.
49 optional bool common_name_fallback_used = 11;
50 };
51
52 // Protobuf for CertVerificationResult and the error.
53 message CertVerificationCachedResult {
54 // The return value of CertVerifier::Verify.
55 optional int64 error = 1;
56 // The output of CertVerifier::Verify.
57 optional CertVerificationResult result = 2;
58 }
59
60 // Protobuf for certicate cache validity period.
61 message CertVerificationCacheValidityPeriod {
62 optional int64 verification_time = 1;
63 optional int64 expiration_time = 2;
64 };
65
66 // Each cache entry for certificate verification request, verification result
67 // and it's validy period.
68 message CertVerificationCacheEntry {
69 optional CertVerificationRequestParams request_params = 1;
70 optional CertVerificationCachedResult cached_result = 2;
71 optional CertVerificationCacheValidityPeriod cache_validity_period = 3;
72 };
73
74 message CertVerificationCache {
75 // List of certificates.
76 repeated string certs = 1;
77 // MultiThreadedCertVerifier's CertVerifierCache.
Ryan Sleevi 2016/05/30 18:37:20 Outdated
ramant (doing other things) 2016/06/01 16:29:22 Done.
78 repeated CertVerificationCacheEntry cache_entry = 2;
79 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698