| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // source: signalling.proto
- package tdproto
- import (
- fmt "fmt"
- proto "github.com/golang/protobuf/proto"
- math "math"
- )
- // Reference imports to suppress errors if they are not otherwise used.
- var _ = proto.Marshal
- var _ = fmt.Errorf
- var _ = math.Inf
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the proto package it is being compiled against.
- // A compilation error at this line likely means your copy of the
- // proto package needs to be updated.
- const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
- type KeyType int32
- const (
- KeyType_AES_GCM_128 KeyType = 90
- KeyType_AES_GCM_256 KeyType = 91
- )
- var KeyType_name = map[int32]string{
- 90: "AES_GCM_128",
- 91: "AES_GCM_256",
- }
- var KeyType_value = map[string]int32{
- "AES_GCM_128": 90,
- "AES_GCM_256": 91,
- }
- func (x KeyType) Enum() *KeyType {
- p := new(KeyType)
- *p = x
- return p
- }
- func (x KeyType) String() string {
- return proto.EnumName(KeyType_name, int32(x))
- }
- func (x *KeyType) UnmarshalJSON(data []byte) error {
- value, err := proto.UnmarshalJSONEnum(KeyType_value, data, "KeyType")
- if err != nil {
- return err
- }
- *x = KeyType(value)
- return nil
- }
- func (KeyType) EnumDescriptor() ([]byte, []int) {
- return fileDescriptor_39f66308029891ad, []int{0}
- }
- // State transitions of the client
- type C2S_Transition int32
- const (
- C2S_Transition_C2S_NO_CHANGE C2S_Transition = 0
- C2S_Transition_C2S_SESSION_INIT C2S_Transition = 1
- C2S_Transition_C2S_SESSION_COVERT_INIT C2S_Transition = 11
- C2S_Transition_C2S_EXPECT_RECONNECT C2S_Transition = 2
- C2S_Transition_C2S_SESSION_CLOSE C2S_Transition = 3
- C2S_Transition_C2S_YIELD_UPLOAD C2S_Transition = 4
- C2S_Transition_C2S_ACQUIRE_UPLOAD C2S_Transition = 5
- C2S_Transition_C2S_EXPECT_UPLOADONLY_RECONN C2S_Transition = 6
- C2S_Transition_C2S_ERROR C2S_Transition = 255
- )
- var C2S_Transition_name = map[int32]string{
- 0: "C2S_NO_CHANGE",
- 1: "C2S_SESSION_INIT",
- 11: "C2S_SESSION_COVERT_INIT",
- 2: "C2S_EXPECT_RECONNECT",
- 3: "C2S_SESSION_CLOSE",
- 4: "C2S_YIELD_UPLOAD",
- 5: "C2S_ACQUIRE_UPLOAD",
- 6: "C2S_EXPECT_UPLOADONLY_RECONN",
- 255: "C2S_ERROR",
- }
- var C2S_Transition_value = map[string]int32{
- "C2S_NO_CHANGE": 0,
- "C2S_SESSION_INIT": 1,
- "C2S_SESSION_COVERT_INIT": 11,
- "C2S_EXPECT_RECONNECT": 2,
- "C2S_SESSION_CLOSE": 3,
- "C2S_YIELD_UPLOAD": 4,
- "C2S_ACQUIRE_UPLOAD": 5,
- "C2S_EXPECT_UPLOADONLY_RECONN": 6,
- "C2S_ERROR": 255,
- }
- func (x C2S_Transition) Enum() *C2S_Transition {
- p := new(C2S_Transition)
- *p = x
- return p
- }
- func (x C2S_Transition) String() string {
- return proto.EnumName(C2S_Transition_name, int32(x))
- }
- func (x *C2S_Transition) UnmarshalJSON(data []byte) error {
- value, err := proto.UnmarshalJSONEnum(C2S_Transition_value, data, "C2S_Transition")
- if err != nil {
- return err
- }
- *x = C2S_Transition(value)
- return nil
- }
- func (C2S_Transition) EnumDescriptor() ([]byte, []int) {
- return fileDescriptor_39f66308029891ad, []int{1}
- }
- // State transitions of the server
- type S2C_Transition int32
- const (
- S2C_Transition_S2C_NO_CHANGE S2C_Transition = 0
- S2C_Transition_S2C_SESSION_INIT S2C_Transition = 1
- S2C_Transition_S2C_SESSION_COVERT_INIT S2C_Transition = 11
- S2C_Transition_S2C_CONFIRM_RECONNECT S2C_Transition = 2
- S2C_Transition_S2C_SESSION_CLOSE S2C_Transition = 3
- // TODO should probably also allow EXPECT_RECONNECT here, for DittoTap
- S2C_Transition_S2C_ERROR S2C_Transition = 255
- )
- var S2C_Transition_name = map[int32]string{
- 0: "S2C_NO_CHANGE",
- 1: "S2C_SESSION_INIT",
- 11: "S2C_SESSION_COVERT_INIT",
- 2: "S2C_CONFIRM_RECONNECT",
- 3: "S2C_SESSION_CLOSE",
- 255: "S2C_ERROR",
- }
- var S2C_Transition_value = map[string]int32{
- "S2C_NO_CHANGE": 0,
- "S2C_SESSION_INIT": 1,
- "S2C_SESSION_COVERT_INIT": 11,
- "S2C_CONFIRM_RECONNECT": 2,
- "S2C_SESSION_CLOSE": 3,
- "S2C_ERROR": 255,
- }
- func (x S2C_Transition) Enum() *S2C_Transition {
- p := new(S2C_Transition)
- *p = x
- return p
- }
- func (x S2C_Transition) String() string {
- return proto.EnumName(S2C_Transition_name, int32(x))
- }
- func (x *S2C_Transition) UnmarshalJSON(data []byte) error {
- value, err := proto.UnmarshalJSONEnum(S2C_Transition_value, data, "S2C_Transition")
- if err != nil {
- return err
- }
- *x = S2C_Transition(value)
- return nil
- }
- func (S2C_Transition) EnumDescriptor() ([]byte, []int) {
- return fileDescriptor_39f66308029891ad, []int{2}
- }
- // Should accompany all S2C_ERROR messages.
- type ErrorReasonS2C int32
- const (
- ErrorReasonS2C_NO_ERROR ErrorReasonS2C = 0
- ErrorReasonS2C_COVERT_STREAM ErrorReasonS2C = 1
- ErrorReasonS2C_CLIENT_REPORTED ErrorReasonS2C = 2
- ErrorReasonS2C_CLIENT_PROTOCOL ErrorReasonS2C = 3
- ErrorReasonS2C_STATION_INTERNAL ErrorReasonS2C = 4
- ErrorReasonS2C_DECOY_OVERLOAD ErrorReasonS2C = 5
- ErrorReasonS2C_CLIENT_STREAM ErrorReasonS2C = 100
- ErrorReasonS2C_CLIENT_TIMEOUT ErrorReasonS2C = 101
- )
- var ErrorReasonS2C_name = map[int32]string{
- 0: "NO_ERROR",
- 1: "COVERT_STREAM",
- 2: "CLIENT_REPORTED",
- 3: "CLIENT_PROTOCOL",
- 4: "STATION_INTERNAL",
- 5: "DECOY_OVERLOAD",
- 100: "CLIENT_STREAM",
- 101: "CLIENT_TIMEOUT",
- }
- var ErrorReasonS2C_value = map[string]int32{
- "NO_ERROR": 0,
- "COVERT_STREAM": 1,
- "CLIENT_REPORTED": 2,
- "CLIENT_PROTOCOL": 3,
- "STATION_INTERNAL": 4,
- "DECOY_OVERLOAD": 5,
- "CLIENT_STREAM": 100,
- "CLIENT_TIMEOUT": 101,
- }
- func (x ErrorReasonS2C) Enum() *ErrorReasonS2C {
- p := new(ErrorReasonS2C)
- *p = x
- return p
- }
- func (x ErrorReasonS2C) String() string {
- return proto.EnumName(ErrorReasonS2C_name, int32(x))
- }
- func (x *ErrorReasonS2C) UnmarshalJSON(data []byte) error {
- value, err := proto.UnmarshalJSONEnum(ErrorReasonS2C_value, data, "ErrorReasonS2C")
- if err != nil {
- return err
- }
- *x = ErrorReasonS2C(value)
- return nil
- }
- func (ErrorReasonS2C) EnumDescriptor() ([]byte, []int) {
- return fileDescriptor_39f66308029891ad, []int{3}
- }
- type PubKey struct {
- // A public key, as used by the station.
- Key []byte `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
- Type *KeyType `protobuf:"varint,2,opt,name=type,enum=tapdance.KeyType" json:"type,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *PubKey) Reset() { *m = PubKey{} }
- func (m *PubKey) String() string { return proto.CompactTextString(m) }
- func (*PubKey) ProtoMessage() {}
- func (*PubKey) Descriptor() ([]byte, []int) {
- return fileDescriptor_39f66308029891ad, []int{0}
- }
- func (m *PubKey) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_PubKey.Unmarshal(m, b)
- }
- func (m *PubKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_PubKey.Marshal(b, m, deterministic)
- }
- func (m *PubKey) XXX_Merge(src proto.Message) {
- xxx_messageInfo_PubKey.Merge(m, src)
- }
- func (m *PubKey) XXX_Size() int {
- return xxx_messageInfo_PubKey.Size(m)
- }
- func (m *PubKey) XXX_DiscardUnknown() {
- xxx_messageInfo_PubKey.DiscardUnknown(m)
- }
- var xxx_messageInfo_PubKey proto.InternalMessageInfo
- func (m *PubKey) GetKey() []byte {
- if m != nil {
- return m.Key
- }
- return nil
- }
- func (m *PubKey) GetType() KeyType {
- if m != nil && m.Type != nil {
- return *m.Type
- }
- return KeyType_AES_GCM_128
- }
- type TLSDecoySpec struct {
- // The hostname/SNI to use for this host
- //
- // The hostname is the only required field, although other
- // fields are expected to be present in most cases.
- Hostname *string `protobuf:"bytes,1,opt,name=hostname" json:"hostname,omitempty"`
- // The 32-bit ipv4 address, in network byte order
- //
- // If the IPv4 address is absent, then it may be resolved via
- // DNS by the client, or the client may discard this decoy spec
- // if local DNS is untrusted, or the service may be multihomed.
- Ipv4Addr *uint32 `protobuf:"fixed32,2,opt,name=ipv4addr" json:"ipv4addr,omitempty"`
- // The 128-bit ipv6 address, in network byte order
- Ipv6Addr []byte `protobuf:"bytes,6,opt,name=ipv6addr" json:"ipv6addr,omitempty"`
- // The Tapdance station public key to use when contacting this
- // decoy
- //
- // If omitted, the default station public key (if any) is used.
- Pubkey *PubKey `protobuf:"bytes,3,opt,name=pubkey" json:"pubkey,omitempty"`
- // The maximum duration, in milliseconds, to maintain an open
- // connection to this decoy (because the decoy may close the
- // connection itself after this length of time)
- //
- // If omitted, a default of 30,000 milliseconds is assumed.
- Timeout *uint32 `protobuf:"varint,4,opt,name=timeout" json:"timeout,omitempty"`
- // The maximum TCP window size to attempt to use for this decoy.
- //
- // If omitted, a default of 15360 is assumed.
- //
- // TODO: the default is based on the current heuristic of only
- // using decoys that permit windows of 15KB or larger. If this
- // heuristic changes, then this default doesn't make sense.
- Tcpwin *uint32 `protobuf:"varint,5,opt,name=tcpwin" json:"tcpwin,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *TLSDecoySpec) Reset() { *m = TLSDecoySpec{} }
- func (m *TLSDecoySpec) String() string { return proto.CompactTextString(m) }
- func (*TLSDecoySpec) ProtoMessage() {}
- func (*TLSDecoySpec) Descriptor() ([]byte, []int) {
- return fileDescriptor_39f66308029891ad, []int{1}
- }
- func (m *TLSDecoySpec) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_TLSDecoySpec.Unmarshal(m, b)
- }
- func (m *TLSDecoySpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_TLSDecoySpec.Marshal(b, m, deterministic)
- }
- func (m *TLSDecoySpec) XXX_Merge(src proto.Message) {
- xxx_messageInfo_TLSDecoySpec.Merge(m, src)
- }
- func (m *TLSDecoySpec) XXX_Size() int {
- return xxx_messageInfo_TLSDecoySpec.Size(m)
- }
- func (m *TLSDecoySpec) XXX_DiscardUnknown() {
- xxx_messageInfo_TLSDecoySpec.DiscardUnknown(m)
- }
- var xxx_messageInfo_TLSDecoySpec proto.InternalMessageInfo
- func (m *TLSDecoySpec) GetHostname() string {
- if m != nil && m.Hostname != nil {
- return *m.Hostname
- }
- return ""
- }
- func (m *TLSDecoySpec) GetIpv4Addr() uint32 {
- if m != nil && m.Ipv4Addr != nil {
- return *m.Ipv4Addr
- }
- return 0
- }
- func (m *TLSDecoySpec) GetIpv6Addr() []byte {
- if m != nil {
- return m.Ipv6Addr
- }
- return nil
- }
- func (m *TLSDecoySpec) GetPubkey() *PubKey {
- if m != nil {
- return m.Pubkey
- }
- return nil
- }
- func (m *TLSDecoySpec) GetTimeout() uint32 {
- if m != nil && m.Timeout != nil {
- return *m.Timeout
- }
- return 0
- }
- func (m *TLSDecoySpec) GetTcpwin() uint32 {
- if m != nil && m.Tcpwin != nil {
- return *m.Tcpwin
- }
- return 0
- }
- type ClientConf struct {
- DecoyList *DecoyList `protobuf:"bytes,1,opt,name=decoy_list,json=decoyList" json:"decoy_list,omitempty"`
- Generation *uint32 `protobuf:"varint,2,opt,name=generation" json:"generation,omitempty"`
- DefaultPubkey *PubKey `protobuf:"bytes,3,opt,name=default_pubkey,json=defaultPubkey" json:"default_pubkey,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *ClientConf) Reset() { *m = ClientConf{} }
- func (m *ClientConf) String() string { return proto.CompactTextString(m) }
- func (*ClientConf) ProtoMessage() {}
- func (*ClientConf) Descriptor() ([]byte, []int) {
- return fileDescriptor_39f66308029891ad, []int{2}
- }
- func (m *ClientConf) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_ClientConf.Unmarshal(m, b)
- }
- func (m *ClientConf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_ClientConf.Marshal(b, m, deterministic)
- }
- func (m *ClientConf) XXX_Merge(src proto.Message) {
- xxx_messageInfo_ClientConf.Merge(m, src)
- }
- func (m *ClientConf) XXX_Size() int {
- return xxx_messageInfo_ClientConf.Size(m)
- }
- func (m *ClientConf) XXX_DiscardUnknown() {
- xxx_messageInfo_ClientConf.DiscardUnknown(m)
- }
- var xxx_messageInfo_ClientConf proto.InternalMessageInfo
- func (m *ClientConf) GetDecoyList() *DecoyList {
- if m != nil {
- return m.DecoyList
- }
- return nil
- }
- func (m *ClientConf) GetGeneration() uint32 {
- if m != nil && m.Generation != nil {
- return *m.Generation
- }
- return 0
- }
- func (m *ClientConf) GetDefaultPubkey() *PubKey {
- if m != nil {
- return m.DefaultPubkey
- }
- return nil
- }
- type DecoyList struct {
- TlsDecoys []*TLSDecoySpec `protobuf:"bytes,1,rep,name=tls_decoys,json=tlsDecoys" json:"tls_decoys,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *DecoyList) Reset() { *m = DecoyList{} }
- func (m *DecoyList) String() string { return proto.CompactTextString(m) }
- func (*DecoyList) ProtoMessage() {}
- func (*DecoyList) Descriptor() ([]byte, []int) {
- return fileDescriptor_39f66308029891ad, []int{3}
- }
- func (m *DecoyList) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_DecoyList.Unmarshal(m, b)
- }
- func (m *DecoyList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_DecoyList.Marshal(b, m, deterministic)
- }
- func (m *DecoyList) XXX_Merge(src proto.Message) {
- xxx_messageInfo_DecoyList.Merge(m, src)
- }
- func (m *DecoyList) XXX_Size() int {
- return xxx_messageInfo_DecoyList.Size(m)
- }
- func (m *DecoyList) XXX_DiscardUnknown() {
- xxx_messageInfo_DecoyList.DiscardUnknown(m)
- }
- var xxx_messageInfo_DecoyList proto.InternalMessageInfo
- func (m *DecoyList) GetTlsDecoys() []*TLSDecoySpec {
- if m != nil {
- return m.TlsDecoys
- }
- return nil
- }
- type StationToClient struct {
- // Should accompany (at least) SESSION_INIT and CONFIRM_RECONNECT.
- ProtocolVersion *uint32 `protobuf:"varint,1,opt,name=protocol_version,json=protocolVersion" json:"protocol_version,omitempty"`
- // There might be a state transition. May be absent; absence should be
- // treated identically to NO_CHANGE.
- StateTransition *S2C_Transition `protobuf:"varint,2,opt,name=state_transition,json=stateTransition,enum=tapdance.S2C_Transition" json:"state_transition,omitempty"`
- // The station can send client config info piggybacked
- // on any message, as it sees fit
- ConfigInfo *ClientConf `protobuf:"bytes,3,opt,name=config_info,json=configInfo" json:"config_info,omitempty"`
- // If state_transition == S2C_ERROR, this field is the explanation.
- ErrReason *ErrorReasonS2C `protobuf:"varint,4,opt,name=err_reason,json=errReason,enum=tapdance.ErrorReasonS2C" json:"err_reason,omitempty"`
- // Signals client to stop connecting for following amount of seconds
- TmpBackoff *uint32 `protobuf:"varint,5,opt,name=tmp_backoff,json=tmpBackoff" json:"tmp_backoff,omitempty"`
- // Sent in SESSION_INIT, identifies the station that picked up
- StationId *string `protobuf:"bytes,6,opt,name=station_id,json=stationId" json:"station_id,omitempty"`
- // Random-sized junk to defeat packet size fingerprinting.
- Padding []byte `protobuf:"bytes,100,opt,name=padding" json:"padding,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *StationToClient) Reset() { *m = StationToClient{} }
- func (m *StationToClient) String() string { return proto.CompactTextString(m) }
- func (*StationToClient) ProtoMessage() {}
- func (*StationToClient) Descriptor() ([]byte, []int) {
- return fileDescriptor_39f66308029891ad, []int{4}
- }
- func (m *StationToClient) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_StationToClient.Unmarshal(m, b)
- }
- func (m *StationToClient) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_StationToClient.Marshal(b, m, deterministic)
- }
- func (m *StationToClient) XXX_Merge(src proto.Message) {
- xxx_messageInfo_StationToClient.Merge(m, src)
- }
- func (m *StationToClient) XXX_Size() int {
- return xxx_messageInfo_StationToClient.Size(m)
- }
- func (m *StationToClient) XXX_DiscardUnknown() {
- xxx_messageInfo_StationToClient.DiscardUnknown(m)
- }
- var xxx_messageInfo_StationToClient proto.InternalMessageInfo
- func (m *StationToClient) GetProtocolVersion() uint32 {
- if m != nil && m.ProtocolVersion != nil {
- return *m.ProtocolVersion
- }
- return 0
- }
- func (m *StationToClient) GetStateTransition() S2C_Transition {
- if m != nil && m.StateTransition != nil {
- return *m.StateTransition
- }
- return S2C_Transition_S2C_NO_CHANGE
- }
- func (m *StationToClient) GetConfigInfo() *ClientConf {
- if m != nil {
- return m.ConfigInfo
- }
- return nil
- }
- func (m *StationToClient) GetErrReason() ErrorReasonS2C {
- if m != nil && m.ErrReason != nil {
- return *m.ErrReason
- }
- return ErrorReasonS2C_NO_ERROR
- }
- func (m *StationToClient) GetTmpBackoff() uint32 {
- if m != nil && m.TmpBackoff != nil {
- return *m.TmpBackoff
- }
- return 0
- }
- func (m *StationToClient) GetStationId() string {
- if m != nil && m.StationId != nil {
- return *m.StationId
- }
- return ""
- }
- func (m *StationToClient) GetPadding() []byte {
- if m != nil {
- return m.Padding
- }
- return nil
- }
- type ClientToStation struct {
- ProtocolVersion *uint32 `protobuf:"varint,1,opt,name=protocol_version,json=protocolVersion" json:"protocol_version,omitempty"`
- // The client reports its decoy list's version number here, which the
- // station can use to decide whether to send an updated one. The station
- // should always send a list if this field is set to 0.
- DecoyListGeneration *uint32 `protobuf:"varint,2,opt,name=decoy_list_generation,json=decoyListGeneration" json:"decoy_list_generation,omitempty"`
- StateTransition *C2S_Transition `protobuf:"varint,3,opt,name=state_transition,json=stateTransition,enum=tapdance.C2S_Transition" json:"state_transition,omitempty"`
- // The position in the overall session's upload sequence where the current
- // YIELD=>ACQUIRE switchover is happening.
- UploadSync *uint64 `protobuf:"varint,4,opt,name=upload_sync,json=uploadSync" json:"upload_sync,omitempty"`
- // List of decoys that client have unsuccessfully tried in current session.
- // Could be sent in chunks
- FailedDecoys []string `protobuf:"bytes,10,rep,name=failed_decoys,json=failedDecoys" json:"failed_decoys,omitempty"`
- Stats *SessionStats `protobuf:"bytes,11,opt,name=stats" json:"stats,omitempty"`
- // Station is only required to check this variable during session initialization.
- // If set, station must facilitate connection to said target by itself, i.e. write into squid
- // socket an HTTP/SOCKS/any other connection request.
- // covert_address must have exactly one ':' colon, that separates host (literal IP address or
- // resolvable hostname) and port
- // TODO: make it required for initialization, and stop connecting any client straight to squid?
- CovertAddress *string `protobuf:"bytes,20,opt,name=covert_address,json=covertAddress" json:"covert_address,omitempty"`
- // Random-sized junk to defeat packet size fingerprinting.
- Padding []byte `protobuf:"bytes,100,opt,name=padding" json:"padding,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *ClientToStation) Reset() { *m = ClientToStation{} }
- func (m *ClientToStation) String() string { return proto.CompactTextString(m) }
- func (*ClientToStation) ProtoMessage() {}
- func (*ClientToStation) Descriptor() ([]byte, []int) {
- return fileDescriptor_39f66308029891ad, []int{5}
- }
- func (m *ClientToStation) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_ClientToStation.Unmarshal(m, b)
- }
- func (m *ClientToStation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_ClientToStation.Marshal(b, m, deterministic)
- }
- func (m *ClientToStation) XXX_Merge(src proto.Message) {
- xxx_messageInfo_ClientToStation.Merge(m, src)
- }
- func (m *ClientToStation) XXX_Size() int {
- return xxx_messageInfo_ClientToStation.Size(m)
- }
- func (m *ClientToStation) XXX_DiscardUnknown() {
- xxx_messageInfo_ClientToStation.DiscardUnknown(m)
- }
- var xxx_messageInfo_ClientToStation proto.InternalMessageInfo
- func (m *ClientToStation) GetProtocolVersion() uint32 {
- if m != nil && m.ProtocolVersion != nil {
- return *m.ProtocolVersion
- }
- return 0
- }
- func (m *ClientToStation) GetDecoyListGeneration() uint32 {
- if m != nil && m.DecoyListGeneration != nil {
- return *m.DecoyListGeneration
- }
- return 0
- }
- func (m *ClientToStation) GetStateTransition() C2S_Transition {
- if m != nil && m.StateTransition != nil {
- return *m.StateTransition
- }
- return C2S_Transition_C2S_NO_CHANGE
- }
- func (m *ClientToStation) GetUploadSync() uint64 {
- if m != nil && m.UploadSync != nil {
- return *m.UploadSync
- }
- return 0
- }
- func (m *ClientToStation) GetFailedDecoys() []string {
- if m != nil {
- return m.FailedDecoys
- }
- return nil
- }
- func (m *ClientToStation) GetStats() *SessionStats {
- if m != nil {
- return m.Stats
- }
- return nil
- }
- func (m *ClientToStation) GetCovertAddress() string {
- if m != nil && m.CovertAddress != nil {
- return *m.CovertAddress
- }
- return ""
- }
- func (m *ClientToStation) GetPadding() []byte {
- if m != nil {
- return m.Padding
- }
- return nil
- }
- type SessionStats struct {
- FailedDecoysAmount *uint32 `protobuf:"varint,20,opt,name=failed_decoys_amount,json=failedDecoysAmount" json:"failed_decoys_amount,omitempty"`
- // Applicable to whole session:
- TotalTimeToConnect *uint32 `protobuf:"varint,31,opt,name=total_time_to_connect,json=totalTimeToConnect" json:"total_time_to_connect,omitempty"`
- // Last (i.e. successful) decoy:
- RttToStation *uint32 `protobuf:"varint,33,opt,name=rtt_to_station,json=rttToStation" json:"rtt_to_station,omitempty"`
- TlsToDecoy *uint32 `protobuf:"varint,38,opt,name=tls_to_decoy,json=tlsToDecoy" json:"tls_to_decoy,omitempty"`
- TcpToDecoy *uint32 `protobuf:"varint,39,opt,name=tcp_to_decoy,json=tcpToDecoy" json:"tcp_to_decoy,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *SessionStats) Reset() { *m = SessionStats{} }
- func (m *SessionStats) String() string { return proto.CompactTextString(m) }
- func (*SessionStats) ProtoMessage() {}
- func (*SessionStats) Descriptor() ([]byte, []int) {
- return fileDescriptor_39f66308029891ad, []int{6}
- }
- func (m *SessionStats) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_SessionStats.Unmarshal(m, b)
- }
- func (m *SessionStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_SessionStats.Marshal(b, m, deterministic)
- }
- func (m *SessionStats) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SessionStats.Merge(m, src)
- }
- func (m *SessionStats) XXX_Size() int {
- return xxx_messageInfo_SessionStats.Size(m)
- }
- func (m *SessionStats) XXX_DiscardUnknown() {
- xxx_messageInfo_SessionStats.DiscardUnknown(m)
- }
- var xxx_messageInfo_SessionStats proto.InternalMessageInfo
- func (m *SessionStats) GetFailedDecoysAmount() uint32 {
- if m != nil && m.FailedDecoysAmount != nil {
- return *m.FailedDecoysAmount
- }
- return 0
- }
- func (m *SessionStats) GetTotalTimeToConnect() uint32 {
- if m != nil && m.TotalTimeToConnect != nil {
- return *m.TotalTimeToConnect
- }
- return 0
- }
- func (m *SessionStats) GetRttToStation() uint32 {
- if m != nil && m.RttToStation != nil {
- return *m.RttToStation
- }
- return 0
- }
- func (m *SessionStats) GetTlsToDecoy() uint32 {
- if m != nil && m.TlsToDecoy != nil {
- return *m.TlsToDecoy
- }
- return 0
- }
- func (m *SessionStats) GetTcpToDecoy() uint32 {
- if m != nil && m.TcpToDecoy != nil {
- return *m.TcpToDecoy
- }
- return 0
- }
- func init() {
- proto.RegisterEnum("tapdance.KeyType", KeyType_name, KeyType_value)
- proto.RegisterEnum("tapdance.C2S_Transition", C2S_Transition_name, C2S_Transition_value)
- proto.RegisterEnum("tapdance.S2C_Transition", S2C_Transition_name, S2C_Transition_value)
- proto.RegisterEnum("tapdance.ErrorReasonS2C", ErrorReasonS2C_name, ErrorReasonS2C_value)
- proto.RegisterType((*PubKey)(nil), "tapdance.PubKey")
- proto.RegisterType((*TLSDecoySpec)(nil), "tapdance.TLSDecoySpec")
- proto.RegisterType((*ClientConf)(nil), "tapdance.ClientConf")
- proto.RegisterType((*DecoyList)(nil), "tapdance.DecoyList")
- proto.RegisterType((*StationToClient)(nil), "tapdance.StationToClient")
- proto.RegisterType((*ClientToStation)(nil), "tapdance.ClientToStation")
- proto.RegisterType((*SessionStats)(nil), "tapdance.SessionStats")
- }
- func init() { proto.RegisterFile("signalling.proto", fileDescriptor_39f66308029891ad) }
- var fileDescriptor_39f66308029891ad = []byte{
- // 1024 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xed, 0x6e, 0xe3, 0x44,
- 0x17, 0x5e, 0x37, 0xdd, 0x6e, 0x73, 0x92, 0x38, 0xee, 0xf4, 0xe3, 0xf5, 0xcb, 0x57, 0x43, 0x60,
- 0x21, 0x14, 0x54, 0xb1, 0x16, 0xdd, 0xe5, 0x6f, 0xd6, 0x35, 0x25, 0xda, 0xd4, 0x0e, 0x63, 0x77,
- 0x45, 0xe1, 0xc7, 0xc8, 0xb5, 0x27, 0xc5, 0x5a, 0xc7, 0x63, 0xd9, 0x93, 0xa2, 0xdc, 0x09, 0xdc,
- 0x03, 0xd7, 0xc0, 0x0d, 0x70, 0x0d, 0xfc, 0x46, 0xe2, 0x26, 0x40, 0x33, 0xe3, 0x24, 0x4e, 0x17,
- 0x2d, 0xe2, 0x9f, 0xcf, 0xf3, 0x9c, 0xaf, 0xe7, 0x9c, 0xe3, 0x01, 0xa3, 0x4c, 0x6e, 0xb3, 0x30,
- 0x4d, 0x93, 0xec, 0xf6, 0x34, 0x2f, 0x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