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 CertVerificationSHA1HashValue { |
| 12 optional bytes data = 1; |
| 13 }; |
| 14 |
| 15 // Protobuf for input parameters of a certificate verification request. |
| 16 message CertVerificationRequestParams { |
| 17 optional string hostname = 1; |
| 18 optional int32 flags = 2; |
| 19 repeated CertVerificationSHA1HashValue hash_values = 3; |
| 20 // The time when verification started. |
| 21 optional int64 start_time = 4; |
| 22 }; |
| 23 |
| 24 // Protobuf for the result of certificate verification. |
| 25 message CertVerificationResult { |
| 26 // Each unique certficate gets an unique number. |
| 27 repeated uint32 cert_numbers = 1; |
| 28 |
| 29 optional uint32 cert_status = 2; |
| 30 |
| 31 // Properties of the certificate chain. |
| 32 optional bool has_md2 = 3; |
| 33 optional bool has_md4 = 4; |
| 34 optional bool has_md5 = 5; |
| 35 optional bool has_sha1 = 6; |
| 36 optional bool has_sha1_leaf = 7; |
| 37 |
| 38 repeated string public_key_hashes = 8; |
| 39 optional bool is_issued_by_known_root = 9; |
| 40 |
| 41 optional bool is_issued_by_additional_trust_anchor = 10; |
| 42 |
| 43 optional bool common_name_fallback_used = 11; |
| 44 }; |
| 45 |
| 46 // Protobuf for CertVerificationResult and the error. |
| 47 message CertVerificationCachedResult { |
| 48 // The return value of CertVerifier::Verify. |
| 49 optional int64 error = 1; |
| 50 // The output of CertVerifier::Verify. |
| 51 optional CertVerificationResult result = 2; |
| 52 } |
| 53 |
| 54 // Protobuf for certicate cache validity period. |
| 55 message CertVerificationCacheValidityPeriod { |
| 56 optional int64 verification_time = 1; |
| 57 optional int64 expiration_time = 2; |
| 58 }; |
| 59 |
| 60 // Each cache entry for certificate verification request, verification result |
| 61 // and it's validy period. |
| 62 message CertVerificationCacheEntry { |
| 63 optional CertVerificationRequestParams request_params = 1; |
| 64 optional CertVerificationCachedResult cached_result = 2; |
| 65 optional CertVerificationCacheValidityPeriod cache_validity_period = 3; |
| 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 |