config.pb.go 21 KB

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