-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathssl_gc_rcon.proto
38 lines (33 loc) · 1.36 KB
/
ssl_gc_rcon.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
syntax = "proto2";
option go_package = "github.com/RoboCup-SSL/ssl-game-controller/internal/app/rcon";
// a reply that is sent by the controller for each request from teams or autoRefs
message ControllerReply {
// status_code is an optional code that indicates the result of the last request
optional StatusCode status_code = 1;
// reason is an optional explanation of the status code
optional string reason = 2;
// next_token must be send with the next request, if secure communication is used
// the token is used to avoid replay attacks
// the token is always present in the very first message before the registration starts
// the token is not present, if secure communication is not used
optional string next_token = 3;
// verification indicates if the last request could be verified (secure communication)
optional Verification verification = 4;
enum StatusCode {
UNKNOWN_STATUS_CODE = 0;
OK = 1;
REJECTED = 2;
}
enum Verification {
UNKNOWN_VERIFICATION = 0;
VERIFIED = 1;
UNVERIFIED = 2;
}
}
// Signature can be added to a request to let it be verfied by the controller
message Signature {
// the token that was received with the last controller reply
required string token = 1;
// the PKCS1v15 signature of this message
required bytes pkcs1v15 = 2;
}