1// Copyright 2018 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 5syntax = "proto2"; 6 7option optimize_for = LITE_RUNTIME; 8 9package quic; 10 11// QuicServerConfigProtobuf contains QUIC server config block and the private 12// keys needed to prove ownership. 13message QuicServerConfigProtobuf { 14 // config is a serialised config in QUIC wire format. 15 required bytes config = 1; 16 17 // PrivateKey contains a QUIC tag of a key exchange algorithm and a 18 // serialised private key for that algorithm. The format of the serialised 19 // private key is specific to the algorithm in question. 20 message PrivateKey { 21 required uint32 tag = 1; 22 required bytes private_key = 2; 23 } 24 repeated PrivateKey key = 2; 25 26 // primary_time contains a UNIX epoch seconds value that indicates when this 27 // config should become primary. 28 optional int64 primary_time = 3; 29 30 // Relative priority of this config vs other configs with the same 31 // primary time. For use as a secondary sort key when selecting the 32 // primary config. 33 optional uint64 priority = 4; 34}; 35