github.com/jlmucb/cloudproxy@v0.0.0-20170830161738-b5aa0b619bc4/go/support_infrastructure/domain_service/service.proto (about) 1 // To compile: protoc -I=. --go_out=. directive.proto 2 3 // Definition of protobufs for directives. 4 syntax = "proto2"; 5 6 package domain_service; 7 8 message domain_service_request { 9 // TODO: explain different types 10 enum request_type { 11 DOMAIN_CERT_REQUEST = 1; 12 MANAGE_POLICY = 2; 13 REVOKE_CERTIFICATE = 3; 14 GET_CRL = 4; 15 } 16 optional request_type type = 1; 17 18 // Fields for type: DOMAIN_CERT_REQUEST. 19 optional bytes serialized_host_attestation = 2; 20 21 // The program key, serialized in the format that 22 // auth.NewKeyPrin() accepts. 23 optional bytes program_key = 3; 24 25 // Fields for type: REVOKE_CERTIFICATE. 26 // This is an attestation signed by the policy key with the statement: 27 // policyKey says revoke certificateSerialNumber 28 optional bytes serialized_policy_attestation = 4; 29 } 30 31 message domain_service_response { 32 optional string error_message = 1; 33 34 // Fields for response to DOMAIN_CERT_REQUEST. 35 optional bytes der_program_cert = 2; 36 37 // Fields for response to GET_CRL. 38 optional bytes crl = 3; 39 } 40 41 message trusted_entities { 42 repeated string trusted_program_tao_names = 1; 43 44 repeated string trusted_host_tao_names = 2; 45 46 repeated string trusted_machine_infos = 3; 47 48 repeated bytes trusted_root_certs = 4; 49 }