Chromium Code Reviews| 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 // | |
| 6 // WARNING: This is experimental code, please don't use it. | |
| 7 // | |
| 8 | |
| 9 syntax = "proto2"; | |
| 10 | |
| 11 option optimize_for = LITE_RUNTIME; | |
| 12 | |
| 13 package cronet_pb; | |
| 14 | |
| 15 message CertVerificationCertificate { | |
| 16 // Certficate number associated with each unique certificate. | |
| 17 repeated uint32 cert_numbers = 1; | |
| 18 }; | |
| 19 | |
| 20 // Protobuf for input parameters of a certificate verification request. | |
| 21 message CertVerificationRequestParams { | |
| 22 optional CertVerificationCertificate certificate = 1; | |
| 23 optional string hostname = 2; | |
| 24 optional int32 flags = 3; | |
| 25 optional string ocsp_response = 4; | |
| 26 repeated CertVerificationCertificate additional_trust_anchors = 5; | |
| 27 }; | |
| 28 | |
| 29 // Protobuf for the result of certificate verification. | |
| 30 message CertVerificationResult { | |
| 31 optional CertVerificationCertificate verified_cert = 1; | |
| 32 | |
| 33 optional uint32 cert_status = 2; | |
| 34 | |
| 35 // Properties of the certificate chain. | |
| 36 optional bool has_md2 = 3; | |
| 37 optional bool has_md4 = 4; | |
| 38 optional bool has_md5 = 5; | |
| 39 optional bool has_sha1 = 6; | |
| 40 optional bool has_sha1_leaf = 7; | |
| 41 | |
| 42 repeated string public_key_hashes = 8; | |
| 43 optional bool is_issued_by_known_root = 9; | |
| 44 optional bool is_issued_by_additional_trust_anchor = 10; | |
| 45 optional bool common_name_fallback_used = 11; | |
| 46 }; | |
| 47 | |
| 48 // Protobuf for CertVerificationResult and the error. | |
| 49 message CertVerificationCachedResult { | |
| 50 // The return value of CertVerifier::Verify. | |
| 51 optional int64 error = 1; | |
| 52 // The output of CertVerifier::Verify. | |
| 53 optional CertVerificationResult result = 2; | |
| 54 } | |
| 55 | |
| 56 // Each cache entry for certificate verification request, verification result | |
| 57 // and it's validy period. | |
|
mef
2016/06/24 19:16:20
validity period -> time of verification?
ramant (doing other things)
2016/06/24 23:28:01
Done.
| |
| 58 message CertVerificationCacheEntry { | |
| 59 optional CertVerificationRequestParams request_params = 1; | |
| 60 optional CertVerificationCachedResult cached_result = 2; | |
| 61 optional int64 verification_time = 3; | |
| 62 }; | |
| 63 | |
| 64 // Protobuf for each unique certificate. | |
| 65 message CertVerificationCertificateData { | |
| 66 // DER encoded certificate. | |
| 67 optional string cert = 1; | |
| 68 // Certficate number associated with the certificate. | |
| 69 optional uint32 cert_number = 2; | |
| 70 }; | |
| 71 | |
| 72 message CertVerificationCache { | |
| 73 // Set of unique certificates. | |
| 74 repeated CertVerificationCertificateData cert_entry = 1; | |
| 75 // CachingCertVerifier's cache entries. | |
| 76 repeated CertVerificationCacheEntry cache_entry = 2; | |
| 77 }; | |
| OLD | NEW |