config.pb.go 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.25.0
  4. // protoc v3.14.0
  5. // source: transport/internet/xtls/config.proto
  6. package xtls
  7. import (
  8. proto "github.com/golang/protobuf/proto"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. // This is a compile-time assertion that a sufficiently up-to-date version
  21. // of the legacy proto package is being used.
  22. const _ = proto.ProtoPackageIsVersion4
  23. type Certificate_Usage int32
  24. const (
  25. Certificate_ENCIPHERMENT Certificate_Usage = 0
  26. Certificate_AUTHORITY_VERIFY Certificate_Usage = 1
  27. Certificate_AUTHORITY_ISSUE Certificate_Usage = 2
  28. )
  29. // Enum value maps for Certificate_Usage.
  30. var (
  31. Certificate_Usage_name = map[int32]string{
  32. 0: "ENCIPHERMENT",
  33. 1: "AUTHORITY_VERIFY",
  34. 2: "AUTHORITY_ISSUE",
  35. }
  36. Certificate_Usage_value = map[string]int32{
  37. "ENCIPHERMENT": 0,
  38. "AUTHORITY_VERIFY": 1,
  39. "AUTHORITY_ISSUE": 2,
  40. }
  41. )
  42. func (x Certificate_Usage) Enum() *Certificate_Usage {
  43. p := new(Certificate_Usage)
  44. *p = x
  45. return p
  46. }
  47. func (x Certificate_Usage) String() string {
  48. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  49. }
  50. func (Certificate_Usage) Descriptor() protoreflect.EnumDescriptor {
  51. return file_transport_internet_xtls_config_proto_enumTypes[0].Descriptor()
  52. }
  53. func (Certificate_Usage) Type() protoreflect.EnumType {
  54. return &file_transport_internet_xtls_config_proto_enumTypes[0]
  55. }
  56. func (x Certificate_Usage) Number() protoreflect.EnumNumber {
  57. return protoreflect.EnumNumber(x)
  58. }
  59. // Deprecated: Use Certificate_Usage.Descriptor instead.
  60. func (Certificate_Usage) EnumDescriptor() ([]byte, []int) {
  61. return file_transport_internet_xtls_config_proto_rawDescGZIP(), []int{0, 0}
  62. }
  63. type Certificate struct {
  64. state protoimpl.MessageState
  65. sizeCache protoimpl.SizeCache
  66. unknownFields protoimpl.UnknownFields
  67. // TLS certificate in x509 format.
  68. Certificate []byte `protobuf:"bytes,1,opt,name=certificate,proto3" json:"certificate,omitempty"`
  69. // TLS key in x509 format.
  70. Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
  71. Usage Certificate_Usage `protobuf:"varint,3,opt,name=usage,proto3,enum=xray.transport.internet.xtls.Certificate_Usage" json:"usage,omitempty"`
  72. OcspStapling uint64 `protobuf:"varint,4,opt,name=ocsp_stapling,json=ocspStapling,proto3" json:"ocsp_stapling,omitempty"`
  73. // TLS certificate path
  74. CertificatePath string `protobuf:"bytes,5,opt,name=certificate_path,json=certificatePath,proto3" json:"certificate_path,omitempty"`
  75. // TLS Key path
  76. KeyPath string `protobuf:"bytes,6,opt,name=key_path,json=keyPath,proto3" json:"key_path,omitempty"`
  77. // If true, one-Time Loading
  78. OneTimeLoading bool `protobuf:"varint,7,opt,name=One_time_loading,json=OneTimeLoading,proto3" json:"One_time_loading,omitempty"`
  79. }
  80. func (x *Certificate) Reset() {
  81. *x = Certificate{}
  82. if protoimpl.UnsafeEnabled {
  83. mi := &file_transport_internet_xtls_config_proto_msgTypes[0]
  84. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  85. ms.StoreMessageInfo(mi)
  86. }
  87. }
  88. func (x *Certificate) String() string {
  89. return protoimpl.X.MessageStringOf(x)
  90. }
  91. func (*Certificate) ProtoMessage() {}
  92. func (x *Certificate) ProtoReflect() protoreflect.Message {
  93. mi := &file_transport_internet_xtls_config_proto_msgTypes[0]
  94. if protoimpl.UnsafeEnabled && x != nil {
  95. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  96. if ms.LoadMessageInfo() == nil {
  97. ms.StoreMessageInfo(mi)
  98. }
  99. return ms
  100. }
  101. return mi.MessageOf(x)
  102. }
  103. // Deprecated: Use Certificate.ProtoReflect.Descriptor instead.
  104. func (*Certificate) Descriptor() ([]byte, []int) {
  105. return file_transport_internet_xtls_config_proto_rawDescGZIP(), []int{0}
  106. }
  107. func (x *Certificate) GetCertificate() []byte {
  108. if x != nil {
  109. return x.Certificate
  110. }
  111. return nil
  112. }
  113. func (x *Certificate) GetKey() []byte {
  114. if x != nil {
  115. return x.Key
  116. }
  117. return nil
  118. }
  119. func (x *Certificate) GetUsage() Certificate_Usage {
  120. if x != nil {
  121. return x.Usage
  122. }
  123. return Certificate_ENCIPHERMENT
  124. }
  125. func (x *Certificate) GetOcspStapling() uint64 {
  126. if x != nil {
  127. return x.OcspStapling
  128. }
  129. return 0
  130. }
  131. func (x *Certificate) GetCertificatePath() string {
  132. if x != nil {
  133. return x.CertificatePath
  134. }
  135. return ""
  136. }
  137. func (x *Certificate) GetKeyPath() string {
  138. if x != nil {
  139. return x.KeyPath
  140. }
  141. return ""
  142. }
  143. func (x *Certificate) GetOneTimeLoading() bool {
  144. if x != nil {
  145. return x.OneTimeLoading
  146. }
  147. return false
  148. }
  149. type Config struct {
  150. state protoimpl.MessageState
  151. sizeCache protoimpl.SizeCache
  152. unknownFields protoimpl.UnknownFields
  153. // Whether or not to allow self-signed certificates.
  154. AllowInsecure bool `protobuf:"varint,1,opt,name=allow_insecure,json=allowInsecure,proto3" json:"allow_insecure,omitempty"`
  155. // List of certificates to be served on server.
  156. Certificate []*Certificate `protobuf:"bytes,2,rep,name=certificate,proto3" json:"certificate,omitempty"`
  157. // Override server name.
  158. ServerName string `protobuf:"bytes,3,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"`
  159. // Lists of string as ALPN values.
  160. NextProtocol []string `protobuf:"bytes,4,rep,name=next_protocol,json=nextProtocol,proto3" json:"next_protocol,omitempty"`
  161. // Whether or not to enable session (ticket) resumption.
  162. EnableSessionResumption bool `protobuf:"varint,5,opt,name=enable_session_resumption,json=enableSessionResumption,proto3" json:"enable_session_resumption,omitempty"`
  163. // If true, root certificates on the system will not be loaded for
  164. // verification.
  165. DisableSystemRoot bool `protobuf:"varint,6,opt,name=disable_system_root,json=disableSystemRoot,proto3" json:"disable_system_root,omitempty"`
  166. // The minimum TLS version.
  167. MinVersion string `protobuf:"bytes,7,opt,name=min_version,json=minVersion,proto3" json:"min_version,omitempty"`
  168. // The maximum TLS version.
  169. MaxVersion string `protobuf:"bytes,8,opt,name=max_version,json=maxVersion,proto3" json:"max_version,omitempty"`
  170. // Specify cipher suites, except for TLS 1.3.
  171. CipherSuites string `protobuf:"bytes,9,opt,name=cipher_suites,json=cipherSuites,proto3" json:"cipher_suites,omitempty"`
  172. // Whether the server selects its most preferred ciphersuite.
  173. PreferServerCipherSuites bool `protobuf:"varint,10,opt,name=prefer_server_cipher_suites,json=preferServerCipherSuites,proto3" json:"prefer_server_cipher_suites,omitempty"`
  174. }
  175. func (x *Config) Reset() {
  176. *x = Config{}
  177. if protoimpl.UnsafeEnabled {
  178. mi := &file_transport_internet_xtls_config_proto_msgTypes[1]
  179. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  180. ms.StoreMessageInfo(mi)
  181. }
  182. }
  183. func (x *Config) String() string {
  184. return protoimpl.X.MessageStringOf(x)
  185. }
  186. func (*Config) ProtoMessage() {}
  187. func (x *Config) ProtoReflect() protoreflect.Message {
  188. mi := &file_transport_internet_xtls_config_proto_msgTypes[1]
  189. if protoimpl.UnsafeEnabled && x != nil {
  190. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  191. if ms.LoadMessageInfo() == nil {
  192. ms.StoreMessageInfo(mi)
  193. }
  194. return ms
  195. }
  196. return mi.MessageOf(x)
  197. }
  198. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  199. func (*Config) Descriptor() ([]byte, []int) {
  200. return file_transport_internet_xtls_config_proto_rawDescGZIP(), []int{1}
  201. }
  202. func (x *Config) GetAllowInsecure() bool {
  203. if x != nil {
  204. return x.AllowInsecure
  205. }
  206. return false
  207. }
  208. func (x *Config) GetCertificate() []*Certificate {
  209. if x != nil {
  210. return x.Certificate
  211. }
  212. return nil
  213. }
  214. func (x *Config) GetServerName() string {
  215. if x != nil {
  216. return x.ServerName
  217. }
  218. return ""
  219. }
  220. func (x *Config) GetNextProtocol() []string {
  221. if x != nil {
  222. return x.NextProtocol
  223. }
  224. return nil
  225. }
  226. func (x *Config) GetEnableSessionResumption() bool {
  227. if x != nil {
  228. return x.EnableSessionResumption
  229. }
  230. return false
  231. }
  232. func (x *Config) GetDisableSystemRoot() bool {
  233. if x != nil {
  234. return x.DisableSystemRoot
  235. }
  236. return false
  237. }
  238. func (x *Config) GetMinVersion() string {
  239. if x != nil {
  240. return x.MinVersion
  241. }
  242. return ""
  243. }
  244. func (x *Config) GetMaxVersion() string {
  245. if x != nil {
  246. return x.MaxVersion
  247. }
  248. return ""
  249. }
  250. func (x *Config) GetCipherSuites() string {
  251. if x != nil {
  252. return x.CipherSuites
  253. }
  254. return ""
  255. }
  256. func (x *Config) GetPreferServerCipherSuites() bool {
  257. if x != nil {
  258. return x.PreferServerCipherSuites
  259. }
  260. return false
  261. }
  262. var File_transport_internet_xtls_config_proto protoreflect.FileDescriptor
  263. var file_transport_internet_xtls_config_proto_rawDesc = []byte{
  264. 0x0a, 0x24, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65,
  265. 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  266. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61,
  267. 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e,
  268. 0x78, 0x74, 0x6c, 0x73, 0x22, 0xe3, 0x02, 0x0a, 0x0b, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69,
  269. 0x63, 0x61, 0x74, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63,
  270. 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69,
  271. 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20,
  272. 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x45, 0x0a, 0x05, 0x75, 0x73, 0x61, 0x67,
  273. 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74,
  274. 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65,
  275. 0x74, 0x2e, 0x78, 0x74, 0x6c, 0x73, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61,
  276. 0x74, 0x65, 0x2e, 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x05, 0x75, 0x73, 0x61, 0x67, 0x65, 0x12,
  277. 0x23, 0x0a, 0x0d, 0x6f, 0x63, 0x73, 0x70, 0x5f, 0x73, 0x74, 0x61, 0x70, 0x6c, 0x69, 0x6e, 0x67,
  278. 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x6f, 0x63, 0x73, 0x70, 0x53, 0x74, 0x61, 0x70,
  279. 0x6c, 0x69, 0x6e, 0x67, 0x12, 0x29, 0x0a, 0x10, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63,
  280. 0x61, 0x74, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f,
  281. 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12,
  282. 0x19, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28,
  283. 0x09, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x50, 0x61, 0x74, 0x68, 0x12, 0x28, 0x0a, 0x10, 0x4f, 0x6e,
  284. 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6c, 0x6f, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x07,
  285. 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x4f, 0x6e, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x4c, 0x6f, 0x61,
  286. 0x64, 0x69, 0x6e, 0x67, 0x22, 0x44, 0x0a, 0x05, 0x55, 0x73, 0x61, 0x67, 0x65, 0x12, 0x10, 0x0a,
  287. 0x0c, 0x45, 0x4e, 0x43, 0x49, 0x50, 0x48, 0x45, 0x52, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x00, 0x12,
  288. 0x14, 0x0a, 0x10, 0x41, 0x55, 0x54, 0x48, 0x4f, 0x52, 0x49, 0x54, 0x59, 0x5f, 0x56, 0x45, 0x52,
  289. 0x49, 0x46, 0x59, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x55, 0x54, 0x48, 0x4f, 0x52, 0x49,
  290. 0x54, 0x59, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x10, 0x02, 0x22, 0xd4, 0x03, 0x0a, 0x06, 0x43,
  291. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x69,
  292. 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x61,
  293. 0x6c, 0x6c, 0x6f, 0x77, 0x49, 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x12, 0x4b, 0x0a, 0x0b,
  294. 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28,
  295. 0x0b, 0x32, 0x29, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f,
  296. 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x78, 0x74, 0x6c, 0x73,
  297. 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x0b, 0x63, 0x65,
  298. 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x72,
  299. 0x76, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a,
  300. 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6e, 0x65,
  301. 0x78, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x04, 0x20, 0x03, 0x28,
  302. 0x09, 0x52, 0x0c, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12,
  303. 0x3a, 0x0a, 0x19, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f,
  304. 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6d, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01,
  305. 0x28, 0x08, 0x52, 0x17, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f,
  306. 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2e, 0x0a, 0x13, 0x64,
  307. 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5f, 0x72, 0x6f,
  308. 0x6f, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c,
  309. 0x65, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x52, 0x6f, 0x6f, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x6d,
  310. 0x69, 0x6e, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09,
  311. 0x52, 0x0a, 0x6d, 0x69, 0x6e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b,
  312. 0x6d, 0x61, 0x78, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28,
  313. 0x09, 0x52, 0x0a, 0x6d, 0x61, 0x78, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a,
  314. 0x0d, 0x63, 0x69, 0x70, 0x68, 0x65, 0x72, 0x5f, 0x73, 0x75, 0x69, 0x74, 0x65, 0x73, 0x18, 0x09,
  315. 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x69, 0x70, 0x68, 0x65, 0x72, 0x53, 0x75, 0x69, 0x74,
  316. 0x65, 0x73, 0x12, 0x3d, 0x0a, 0x1b, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x72,
  317. 0x76, 0x65, 0x72, 0x5f, 0x63, 0x69, 0x70, 0x68, 0x65, 0x72, 0x5f, 0x73, 0x75, 0x69, 0x74, 0x65,
  318. 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x18, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x53,
  319. 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x69, 0x70, 0x68, 0x65, 0x72, 0x53, 0x75, 0x69, 0x74, 0x65,
  320. 0x73, 0x42, 0x76, 0x0a, 0x20, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72,
  321. 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74,
  322. 0x2e, 0x78, 0x74, 0x6c, 0x73, 0x50, 0x01, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
  323. 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f,
  324. 0x72, 0x65, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74,
  325. 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0xaa, 0x02, 0x1c, 0x58, 0x72, 0x61,
  326. 0x79, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6e, 0x74, 0x65,
  327. 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x58, 0x74, 0x6c, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  328. 0x33,
  329. }
  330. var (
  331. file_transport_internet_xtls_config_proto_rawDescOnce sync.Once
  332. file_transport_internet_xtls_config_proto_rawDescData = file_transport_internet_xtls_config_proto_rawDesc
  333. )
  334. func file_transport_internet_xtls_config_proto_rawDescGZIP() []byte {
  335. file_transport_internet_xtls_config_proto_rawDescOnce.Do(func() {
  336. file_transport_internet_xtls_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_xtls_config_proto_rawDescData)
  337. })
  338. return file_transport_internet_xtls_config_proto_rawDescData
  339. }
  340. var file_transport_internet_xtls_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  341. var file_transport_internet_xtls_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  342. var file_transport_internet_xtls_config_proto_goTypes = []interface{}{
  343. (Certificate_Usage)(0), // 0: xray.transport.internet.xtls.Certificate.Usage
  344. (*Certificate)(nil), // 1: xray.transport.internet.xtls.Certificate
  345. (*Config)(nil), // 2: xray.transport.internet.xtls.Config
  346. }
  347. var file_transport_internet_xtls_config_proto_depIdxs = []int32{
  348. 0, // 0: xray.transport.internet.xtls.Certificate.usage:type_name -> xray.transport.internet.xtls.Certificate.Usage
  349. 1, // 1: xray.transport.internet.xtls.Config.certificate:type_name -> xray.transport.internet.xtls.Certificate
  350. 2, // [2:2] is the sub-list for method output_type
  351. 2, // [2:2] is the sub-list for method input_type
  352. 2, // [2:2] is the sub-list for extension type_name
  353. 2, // [2:2] is the sub-list for extension extendee
  354. 0, // [0:2] is the sub-list for field type_name
  355. }
  356. func init() { file_transport_internet_xtls_config_proto_init() }
  357. func file_transport_internet_xtls_config_proto_init() {
  358. if File_transport_internet_xtls_config_proto != nil {
  359. return
  360. }
  361. if !protoimpl.UnsafeEnabled {
  362. file_transport_internet_xtls_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  363. switch v := v.(*Certificate); i {
  364. case 0:
  365. return &v.state
  366. case 1:
  367. return &v.sizeCache
  368. case 2:
  369. return &v.unknownFields
  370. default:
  371. return nil
  372. }
  373. }
  374. file_transport_internet_xtls_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  375. switch v := v.(*Config); i {
  376. case 0:
  377. return &v.state
  378. case 1:
  379. return &v.sizeCache
  380. case 2:
  381. return &v.unknownFields
  382. default:
  383. return nil
  384. }
  385. }
  386. }
  387. type x struct{}
  388. out := protoimpl.TypeBuilder{
  389. File: protoimpl.DescBuilder{
  390. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  391. RawDescriptor: file_transport_internet_xtls_config_proto_rawDesc,
  392. NumEnums: 1,
  393. NumMessages: 2,
  394. NumExtensions: 0,
  395. NumServices: 0,
  396. },
  397. GoTypes: file_transport_internet_xtls_config_proto_goTypes,
  398. DependencyIndexes: file_transport_internet_xtls_config_proto_depIdxs,
  399. EnumInfos: file_transport_internet_xtls_config_proto_enumTypes,
  400. MessageInfos: file_transport_internet_xtls_config_proto_msgTypes,
  401. }.Build()
  402. File_transport_internet_xtls_config_proto = out.File
  403. file_transport_internet_xtls_config_proto_rawDesc = nil
  404. file_transport_internet_xtls_config_proto_goTypes = nil
  405. file_transport_internet_xtls_config_proto_depIdxs = nil
  406. }