OLD | NEW |
---|---|
(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 CertVerificationSHA256HashValue { | |
12 optional bytes data = 1; | |
13 }; | |
14 | |
15 // Protobuf for MultiThreadedCertVerifier::RequestParams. Input parameters of a | |
16 // certificate verification request. | |
Ryan Sleevi
2016/04/29 23:33:21
BUG: Please don't couple your protobuf like this t
ramant (doing other things)
2016/04/30 22:58:12
Removed references to the MultiThreadedCertVerifi
| |
17 message CertVerificationRequestParams { | |
18 required string hostname = 1; | |
19 required int32 flags = 2; | |
20 repeated CertVerificationSHA256HashValue hash_values = 3; | |
Ryan Sleevi
2016/04/29 23:33:21
Surely this isn't correct. The MultiThreadedCertVe
ramant (doing other things)
2016/04/30 22:58:12
My fault. I have misunderstood the earlier comment
| |
21 // The time when verification started. | |
22 required int64 start_time = 4; | |
23 }; | |
24 | |
25 // Protobuf for CertVerifyResult. The result of certificate verification. | |
26 message CertVerificationResult { | |
27 // Each unique certficate gets an unique number. | |
28 repeated uint32 cert_numbers = 1; | |
29 | |
30 required uint32 cert_status = 2; | |
31 | |
32 // Properties of the certificate chain. | |
33 required bool has_md2 = 3; | |
34 required bool has_md4 = 4; | |
35 required bool has_md5 = 5; | |
36 required bool has_sha1 = 6; | |
37 required bool has_sha1_leaf = 7; | |
38 | |
39 repeated string public_key_hashes = 8; | |
40 required bool is_issued_by_known_root = 9; | |
41 | |
42 required bool is_issued_by_additional_trust_anchor = 10; | |
43 | |
44 required bool common_name_fallback_used = 11; | |
45 }; | |
46 | |
47 // Protobuf for MultiThreadedCertVerifier::CachedResult. | |
48 message CertVerificationCachedResult { | |
49 // The return value of CertVerifier::Verify. | |
50 required int64 error = 1; | |
51 // The output of CertVerifier::Verify. | |
52 optional CertVerificationResult result = 2; | |
53 } | |
54 | |
55 // Protobuf for MultiThreadedCertVerifier::CacheValidityPeriod. | |
56 message CertVerificationCacheValidityPeriod { | |
57 required int64 verification_time = 1; | |
58 required int64 expiration_time = 2; | |
59 }; | |
60 | |
61 // Each cache entry of MultiThreadedCertVerifier's CertVerifierCache. | |
62 message CertVerificationCacheEntry { | |
63 required CertVerificationRequestParams request_params = 1; | |
64 optional CertVerificationCachedResult cached_result = 2; | |
65 optional CertVerificationCacheValidityPeriod cache_validity_period = 3; | |
Ryan Sleevi
2016/04/29 23:33:21
I don't feel comfortable reviewing protobuf files
ramant (doing other things)
2016/04/30 22:58:12
Changed all the fields to optional fields.
| |
66 }; | |
67 | |
68 message CertVerificationCache { | |
69 // List of certificates. | |
70 repeated string certs = 1; | |
71 // MultiThreadedCertVerifier's CertVerifierCache. | |
72 repeated CertVerificationCacheEntry cache_entry = 2; | |
73 }; | |
OLD | NEW |