github.com/jlmucb/cloudproxy@v0.0.0-20170830161738-b5aa0b619bc4/src/support_libraries/protos/domain_policy.proto (about) 1 // Copyright (c) 2016, Google, Inc. All rights reserved. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 syntax = "proto2"; 15 16 package domain_policy; 17 18 // This is used to request a signed cert from the domain service. 19 // attestation is the marshaled attestation. 20 // program_key is the der encoded program public key. 21 // cert chain is any supporting certificates. 22 message DomainCertRequest { 23 optional bytes attestation = 1; 24 optional string key_type = 2; 25 optional bytes subject_public_key = 3; 26 repeated bytes cert_chain = 4; 27 } 28 29 // This is the response from the domain service. 30 // signed_cert is the signed program cert. 31 // cert_chain is the supporting certificate chain. 32 message DomainCertResponse { 33 required int32 error = 1; 34 optional bytes signed_cert = 2; 35 repeated bytes cert_chain = 3; 36 } 37