config.pb.go 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514
  1. package tls
  2. import (
  3. _ "github.com/v2fly/v2ray-core/v5/common/protoext"
  4. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  5. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  6. reflect "reflect"
  7. sync "sync"
  8. unsafe "unsafe"
  9. )
  10. const (
  11. // Verify that this generated code is sufficiently up-to-date.
  12. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  13. // Verify that runtime/protoimpl is sufficiently up-to-date.
  14. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  15. )
  16. type Certificate_Usage int32
  17. const (
  18. Certificate_ENCIPHERMENT Certificate_Usage = 0
  19. Certificate_AUTHORITY_VERIFY Certificate_Usage = 1
  20. Certificate_AUTHORITY_ISSUE Certificate_Usage = 2
  21. Certificate_AUTHORITY_VERIFY_CLIENT Certificate_Usage = 3
  22. )
  23. // Enum value maps for Certificate_Usage.
  24. var (
  25. Certificate_Usage_name = map[int32]string{
  26. 0: "ENCIPHERMENT",
  27. 1: "AUTHORITY_VERIFY",
  28. 2: "AUTHORITY_ISSUE",
  29. 3: "AUTHORITY_VERIFY_CLIENT",
  30. }
  31. Certificate_Usage_value = map[string]int32{
  32. "ENCIPHERMENT": 0,
  33. "AUTHORITY_VERIFY": 1,
  34. "AUTHORITY_ISSUE": 2,
  35. "AUTHORITY_VERIFY_CLIENT": 3,
  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 Config_TLSVersion int32
  60. const (
  61. Config_Default Config_TLSVersion = 0
  62. Config_TLS1_0 Config_TLSVersion = 1
  63. Config_TLS1_1 Config_TLSVersion = 2
  64. Config_TLS1_2 Config_TLSVersion = 3
  65. Config_TLS1_3 Config_TLSVersion = 4
  66. )
  67. // Enum value maps for Config_TLSVersion.
  68. var (
  69. Config_TLSVersion_name = map[int32]string{
  70. 0: "Default",
  71. 1: "TLS1_0",
  72. 2: "TLS1_1",
  73. 3: "TLS1_2",
  74. 4: "TLS1_3",
  75. }
  76. Config_TLSVersion_value = map[string]int32{
  77. "Default": 0,
  78. "TLS1_0": 1,
  79. "TLS1_1": 2,
  80. "TLS1_2": 3,
  81. "TLS1_3": 4,
  82. }
  83. )
  84. func (x Config_TLSVersion) Enum() *Config_TLSVersion {
  85. p := new(Config_TLSVersion)
  86. *p = x
  87. return p
  88. }
  89. func (x Config_TLSVersion) String() string {
  90. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  91. }
  92. func (Config_TLSVersion) Descriptor() protoreflect.EnumDescriptor {
  93. return file_transport_internet_tls_config_proto_enumTypes[1].Descriptor()
  94. }
  95. func (Config_TLSVersion) Type() protoreflect.EnumType {
  96. return &file_transport_internet_tls_config_proto_enumTypes[1]
  97. }
  98. func (x Config_TLSVersion) Number() protoreflect.EnumNumber {
  99. return protoreflect.EnumNumber(x)
  100. }
  101. // Deprecated: Use Config_TLSVersion.Descriptor instead.
  102. func (Config_TLSVersion) EnumDescriptor() ([]byte, []int) {
  103. return file_transport_internet_tls_config_proto_rawDescGZIP(), []int{1, 0}
  104. }
  105. type Certificate struct {
  106. state protoimpl.MessageState `protogen:"open.v1"`
  107. // TLS certificate in x509 format.
  108. Certificate []byte `protobuf:"bytes,1,opt,name=Certificate,proto3" json:"Certificate,omitempty"`
  109. // TLS key in x509 format.
  110. Key []byte `protobuf:"bytes,2,opt,name=Key,proto3" json:"Key,omitempty"`
  111. Usage Certificate_Usage `protobuf:"varint,3,opt,name=usage,proto3,enum=v2ray.core.transport.internet.tls.Certificate_Usage" json:"usage,omitempty"`
  112. CertificateFile string `protobuf:"bytes,96001,opt,name=certificate_file,json=certificateFile,proto3" json:"certificate_file,omitempty"`
  113. KeyFile string `protobuf:"bytes,96002,opt,name=key_file,json=keyFile,proto3" json:"key_file,omitempty"`
  114. unknownFields protoimpl.UnknownFields
  115. sizeCache protoimpl.SizeCache
  116. }
  117. func (x *Certificate) Reset() {
  118. *x = Certificate{}
  119. mi := &file_transport_internet_tls_config_proto_msgTypes[0]
  120. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  121. ms.StoreMessageInfo(mi)
  122. }
  123. func (x *Certificate) String() string {
  124. return protoimpl.X.MessageStringOf(x)
  125. }
  126. func (*Certificate) ProtoMessage() {}
  127. func (x *Certificate) ProtoReflect() protoreflect.Message {
  128. mi := &file_transport_internet_tls_config_proto_msgTypes[0]
  129. if x != nil {
  130. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  131. if ms.LoadMessageInfo() == nil {
  132. ms.StoreMessageInfo(mi)
  133. }
  134. return ms
  135. }
  136. return mi.MessageOf(x)
  137. }
  138. // Deprecated: Use Certificate.ProtoReflect.Descriptor instead.
  139. func (*Certificate) Descriptor() ([]byte, []int) {
  140. return file_transport_internet_tls_config_proto_rawDescGZIP(), []int{0}
  141. }
  142. func (x *Certificate) GetCertificate() []byte {
  143. if x != nil {
  144. return x.Certificate
  145. }
  146. return nil
  147. }
  148. func (x *Certificate) GetKey() []byte {
  149. if x != nil {
  150. return x.Key
  151. }
  152. return nil
  153. }
  154. func (x *Certificate) GetUsage() Certificate_Usage {
  155. if x != nil {
  156. return x.Usage
  157. }
  158. return Certificate_ENCIPHERMENT
  159. }
  160. func (x *Certificate) GetCertificateFile() string {
  161. if x != nil {
  162. return x.CertificateFile
  163. }
  164. return ""
  165. }
  166. func (x *Certificate) GetKeyFile() string {
  167. if x != nil {
  168. return x.KeyFile
  169. }
  170. return ""
  171. }
  172. type Config struct {
  173. state protoimpl.MessageState `protogen:"open.v1"`
  174. // Whether or not to allow self-signed certificates.
  175. AllowInsecure bool `protobuf:"varint,1,opt,name=allow_insecure,json=allowInsecure,proto3" json:"allow_insecure,omitempty"`
  176. // List of certificates to be served on server.
  177. Certificate []*Certificate `protobuf:"bytes,2,rep,name=certificate,proto3" json:"certificate,omitempty"`
  178. // Override server name.
  179. ServerName string `protobuf:"bytes,3,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"`
  180. // Lists of string as ALPN values.
  181. NextProtocol []string `protobuf:"bytes,4,rep,name=next_protocol,json=nextProtocol,proto3" json:"next_protocol,omitempty"`
  182. // Whether or not to enable session (ticket) resumption.
  183. EnableSessionResumption bool `protobuf:"varint,5,opt,name=enable_session_resumption,json=enableSessionResumption,proto3" json:"enable_session_resumption,omitempty"`
  184. // If true, root certificates on the system will not be loaded for
  185. // verification.
  186. DisableSystemRoot bool `protobuf:"varint,6,opt,name=disable_system_root,json=disableSystemRoot,proto3" json:"disable_system_root,omitempty"`
  187. // @Document A pinned certificate chain sha256 hash.
  188. // @Document If the server's hash does not match this value, the connection will be aborted.
  189. // @Document This value replace allow_insecure.
  190. // @Critical
  191. PinnedPeerCertificateChainSha256 [][]byte `protobuf:"bytes,7,rep,name=pinned_peer_certificate_chain_sha256,json=pinnedPeerCertificateChainSha256,proto3" json:"pinned_peer_certificate_chain_sha256,omitempty"`
  192. // If true, the client is required to present a certificate.
  193. VerifyClientCertificate bool `protobuf:"varint,8,opt,name=verify_client_certificate,json=verifyClientCertificate,proto3" json:"verify_client_certificate,omitempty"`
  194. // Minimum TLS version to support.
  195. MinVersion Config_TLSVersion `protobuf:"varint,9,opt,name=min_version,json=minVersion,proto3,enum=v2ray.core.transport.internet.tls.Config_TLSVersion" json:"min_version,omitempty"`
  196. // Maximum TLS version to support.
  197. MaxVersion Config_TLSVersion `protobuf:"varint,10,opt,name=max_version,json=maxVersion,proto3,enum=v2ray.core.transport.internet.tls.Config_TLSVersion" json:"max_version,omitempty"`
  198. // Whether or not to allow self-signed certificates when pinned_peer_certificate_chain_sha256 is present.
  199. AllowInsecureIfPinnedPeerCertificate bool `protobuf:"varint,11,opt,name=allow_insecure_if_pinned_peer_certificate,json=allowInsecureIfPinnedPeerCertificate,proto3" json:"allow_insecure_if_pinned_peer_certificate,omitempty"`
  200. // ECH Config in bytes format
  201. EchConfig []byte `protobuf:"bytes,16,opt,name=ech_config,json=echConfig,proto3" json:"ech_config,omitempty"`
  202. // DOH server to query HTTPS record for ECH
  203. Ech_DOHserver string `protobuf:"bytes,17,opt,name=ech_DOHserver,json=echDOHserver,proto3" json:"ech_DOHserver,omitempty"`
  204. unknownFields protoimpl.UnknownFields
  205. sizeCache protoimpl.SizeCache
  206. }
  207. func (x *Config) Reset() {
  208. *x = Config{}
  209. mi := &file_transport_internet_tls_config_proto_msgTypes[1]
  210. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  211. ms.StoreMessageInfo(mi)
  212. }
  213. func (x *Config) String() string {
  214. return protoimpl.X.MessageStringOf(x)
  215. }
  216. func (*Config) ProtoMessage() {}
  217. func (x *Config) ProtoReflect() protoreflect.Message {
  218. mi := &file_transport_internet_tls_config_proto_msgTypes[1]
  219. if x != nil {
  220. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  221. if ms.LoadMessageInfo() == nil {
  222. ms.StoreMessageInfo(mi)
  223. }
  224. return ms
  225. }
  226. return mi.MessageOf(x)
  227. }
  228. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  229. func (*Config) Descriptor() ([]byte, []int) {
  230. return file_transport_internet_tls_config_proto_rawDescGZIP(), []int{1}
  231. }
  232. func (x *Config) GetAllowInsecure() bool {
  233. if x != nil {
  234. return x.AllowInsecure
  235. }
  236. return false
  237. }
  238. func (x *Config) GetCertificate() []*Certificate {
  239. if x != nil {
  240. return x.Certificate
  241. }
  242. return nil
  243. }
  244. func (x *Config) GetServerName() string {
  245. if x != nil {
  246. return x.ServerName
  247. }
  248. return ""
  249. }
  250. func (x *Config) GetNextProtocol() []string {
  251. if x != nil {
  252. return x.NextProtocol
  253. }
  254. return nil
  255. }
  256. func (x *Config) GetEnableSessionResumption() bool {
  257. if x != nil {
  258. return x.EnableSessionResumption
  259. }
  260. return false
  261. }
  262. func (x *Config) GetDisableSystemRoot() bool {
  263. if x != nil {
  264. return x.DisableSystemRoot
  265. }
  266. return false
  267. }
  268. func (x *Config) GetPinnedPeerCertificateChainSha256() [][]byte {
  269. if x != nil {
  270. return x.PinnedPeerCertificateChainSha256
  271. }
  272. return nil
  273. }
  274. func (x *Config) GetVerifyClientCertificate() bool {
  275. if x != nil {
  276. return x.VerifyClientCertificate
  277. }
  278. return false
  279. }
  280. func (x *Config) GetMinVersion() Config_TLSVersion {
  281. if x != nil {
  282. return x.MinVersion
  283. }
  284. return Config_Default
  285. }
  286. func (x *Config) GetMaxVersion() Config_TLSVersion {
  287. if x != nil {
  288. return x.MaxVersion
  289. }
  290. return Config_Default
  291. }
  292. func (x *Config) GetAllowInsecureIfPinnedPeerCertificate() bool {
  293. if x != nil {
  294. return x.AllowInsecureIfPinnedPeerCertificate
  295. }
  296. return false
  297. }
  298. func (x *Config) GetEchConfig() []byte {
  299. if x != nil {
  300. return x.EchConfig
  301. }
  302. return nil
  303. }
  304. func (x *Config) GetEch_DOHserver() string {
  305. if x != nil {
  306. return x.Ech_DOHserver
  307. }
  308. return ""
  309. }
  310. var File_transport_internet_tls_config_proto protoreflect.FileDescriptor
  311. var file_transport_internet_tls_config_proto_rawDesc = string([]byte{
  312. 0x0a, 0x23, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65,
  313. 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x74, 0x6c, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,
  314. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x21, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  315. 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65,
  316. 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x74, 0x6c, 0x73, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  317. 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73,
  318. 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd8, 0x02, 0x0a, 0x0b, 0x43,
  319. 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x43, 0x65,
  320. 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52,
  321. 0x0b, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03,
  322. 0x4b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x4b, 0x65, 0x79, 0x12, 0x4a,
  323. 0x0a, 0x05, 0x75, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e,
  324. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73,
  325. 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x74, 0x6c,
  326. 0x73, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x55, 0x73,
  327. 0x61, 0x67, 0x65, 0x52, 0x05, 0x75, 0x73, 0x61, 0x67, 0x65, 0x12, 0x3e, 0x0a, 0x10, 0x63, 0x65,
  328. 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x81,
  329. 0xee, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x11, 0x82, 0xb5, 0x18, 0x0d, 0x22, 0x0b, 0x43, 0x65,
  330. 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x0f, 0x63, 0x65, 0x72, 0x74, 0x69,
  331. 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x26, 0x0a, 0x08, 0x6b, 0x65,
  332. 0x79, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x82, 0xee, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x09,
  333. 0x82, 0xb5, 0x18, 0x05, 0x22, 0x03, 0x4b, 0x65, 0x79, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x46, 0x69,
  334. 0x6c, 0x65, 0x22, 0x61, 0x0a, 0x05, 0x55, 0x73, 0x61, 0x67, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x45,
  335. 0x4e, 0x43, 0x49, 0x50, 0x48, 0x45, 0x52, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x00, 0x12, 0x14, 0x0a,
  336. 0x10, 0x41, 0x55, 0x54, 0x48, 0x4f, 0x52, 0x49, 0x54, 0x59, 0x5f, 0x56, 0x45, 0x52, 0x49, 0x46,
  337. 0x59, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x55, 0x54, 0x48, 0x4f, 0x52, 0x49, 0x54, 0x59,
  338. 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x10, 0x02, 0x12, 0x1b, 0x0a, 0x17, 0x41, 0x55, 0x54, 0x48,
  339. 0x4f, 0x52, 0x49, 0x54, 0x59, 0x5f, 0x56, 0x45, 0x52, 0x49, 0x46, 0x59, 0x5f, 0x43, 0x4c, 0x49,
  340. 0x45, 0x4e, 0x54, 0x10, 0x03, 0x22, 0xf6, 0x06, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  341. 0x12, 0x2d, 0x0a, 0x0e, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x69, 0x6e, 0x73, 0x65, 0x63, 0x75,
  342. 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x42, 0x06, 0x82, 0xb5, 0x18, 0x02, 0x28, 0x01,
  343. 0x52, 0x0d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x49, 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x12,
  344. 0x50, 0x0a, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x02,
  345. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  346. 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65,
  347. 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x74, 0x6c, 0x73, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69,
  348. 0x63, 0x61, 0x74, 0x65, 0x52, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,
  349. 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65,
  350. 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4e, 0x61,
  351. 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  352. 0x63, 0x6f, 0x6c, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x65, 0x78, 0x74, 0x50,
  353. 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x3a, 0x0a, 0x19, 0x65, 0x6e, 0x61, 0x62, 0x6c,
  354. 0x65, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6d, 0x70,
  355. 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x17, 0x65, 0x6e, 0x61, 0x62,
  356. 0x6c, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x70, 0x74,
  357. 0x69, 0x6f, 0x6e, 0x12, 0x2e, 0x0a, 0x13, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73,
  358. 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5f, 0x72, 0x6f, 0x6f, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08,
  359. 0x52, 0x11, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x52,
  360. 0x6f, 0x6f, 0x74, 0x12, 0x4e, 0x0a, 0x24, 0x70, 0x69, 0x6e, 0x6e, 0x65, 0x64, 0x5f, 0x70, 0x65,
  361. 0x65, 0x72, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x63,
  362. 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x73, 0x68, 0x61, 0x32, 0x35, 0x36, 0x18, 0x07, 0x20, 0x03, 0x28,
  363. 0x0c, 0x52, 0x20, 0x70, 0x69, 0x6e, 0x6e, 0x65, 0x64, 0x50, 0x65, 0x65, 0x72, 0x43, 0x65, 0x72,
  364. 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x53, 0x68, 0x61,
  365. 0x32, 0x35, 0x36, 0x12, 0x3a, 0x0a, 0x19, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x63, 0x6c,
  366. 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65,
  367. 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x17, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x43, 0x6c,
  368. 0x69, 0x65, 0x6e, 0x74, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12,
  369. 0x55, 0x0a, 0x0b, 0x6d, 0x69, 0x6e, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x09,
  370. 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  371. 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65,
  372. 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x74, 0x6c, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,
  373. 0x54, 0x4c, 0x53, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x6d, 0x69, 0x6e, 0x56,
  374. 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x55, 0x0a, 0x0b, 0x6d, 0x61, 0x78, 0x5f, 0x76, 0x65,
  375. 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x76, 0x32,
  376. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f,
  377. 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x74, 0x6c, 0x73, 0x2e,
  378. 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x54, 0x4c, 0x53, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f,
  379. 0x6e, 0x52, 0x0a, 0x6d, 0x61, 0x78, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x57, 0x0a,
  380. 0x29, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x69, 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x5f,
  381. 0x69, 0x66, 0x5f, 0x70, 0x69, 0x6e, 0x6e, 0x65, 0x64, 0x5f, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x63,
  382. 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08,
  383. 0x52, 0x24, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x49, 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x49,
  384. 0x66, 0x50, 0x69, 0x6e, 0x6e, 0x65, 0x64, 0x50, 0x65, 0x65, 0x72, 0x43, 0x65, 0x72, 0x74, 0x69,
  385. 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x63, 0x68, 0x5f, 0x63, 0x6f,
  386. 0x6e, 0x66, 0x69, 0x67, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x65, 0x63, 0x68, 0x43,
  387. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x63, 0x68, 0x5f, 0x44, 0x4f, 0x48,
  388. 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x63,
  389. 0x68, 0x44, 0x4f, 0x48, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x22, 0x49, 0x0a, 0x0a, 0x54, 0x4c,
  390. 0x53, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x65, 0x66, 0x61,
  391. 0x75, 0x6c, 0x74, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x54, 0x4c, 0x53, 0x31, 0x5f, 0x30, 0x10,
  392. 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x54, 0x4c, 0x53, 0x31, 0x5f, 0x31, 0x10, 0x02, 0x12, 0x0a, 0x0a,
  393. 0x06, 0x54, 0x4c, 0x53, 0x31, 0x5f, 0x32, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x54, 0x4c, 0x53,
  394. 0x31, 0x5f, 0x33, 0x10, 0x04, 0x3a, 0x17, 0x82, 0xb5, 0x18, 0x13, 0x0a, 0x08, 0x73, 0x65, 0x63,
  395. 0x75, 0x72, 0x69, 0x74, 0x79, 0x12, 0x03, 0x74, 0x6c, 0x73, 0x90, 0xff, 0x29, 0x01, 0x42, 0x84,
  396. 0x01, 0x0a, 0x25, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  397. 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65,
  398. 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x74, 0x6c, 0x73, 0x50, 0x01, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68,
  399. 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72,
  400. 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73,
  401. 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x74, 0x6c,
  402. 0x73, 0xaa, 0x02, 0x21, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x54,
  403. 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65,
  404. 0x74, 0x2e, 0x54, 0x6c, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  405. })
  406. var (
  407. file_transport_internet_tls_config_proto_rawDescOnce sync.Once
  408. file_transport_internet_tls_config_proto_rawDescData []byte
  409. )
  410. func file_transport_internet_tls_config_proto_rawDescGZIP() []byte {
  411. file_transport_internet_tls_config_proto_rawDescOnce.Do(func() {
  412. file_transport_internet_tls_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_transport_internet_tls_config_proto_rawDesc), len(file_transport_internet_tls_config_proto_rawDesc)))
  413. })
  414. return file_transport_internet_tls_config_proto_rawDescData
  415. }
  416. var file_transport_internet_tls_config_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
  417. var file_transport_internet_tls_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  418. var file_transport_internet_tls_config_proto_goTypes = []any{
  419. (Certificate_Usage)(0), // 0: v2ray.core.transport.internet.tls.Certificate.Usage
  420. (Config_TLSVersion)(0), // 1: v2ray.core.transport.internet.tls.Config.TLSVersion
  421. (*Certificate)(nil), // 2: v2ray.core.transport.internet.tls.Certificate
  422. (*Config)(nil), // 3: v2ray.core.transport.internet.tls.Config
  423. }
  424. var file_transport_internet_tls_config_proto_depIdxs = []int32{
  425. 0, // 0: v2ray.core.transport.internet.tls.Certificate.usage:type_name -> v2ray.core.transport.internet.tls.Certificate.Usage
  426. 2, // 1: v2ray.core.transport.internet.tls.Config.certificate:type_name -> v2ray.core.transport.internet.tls.Certificate
  427. 1, // 2: v2ray.core.transport.internet.tls.Config.min_version:type_name -> v2ray.core.transport.internet.tls.Config.TLSVersion
  428. 1, // 3: v2ray.core.transport.internet.tls.Config.max_version:type_name -> v2ray.core.transport.internet.tls.Config.TLSVersion
  429. 4, // [4:4] is the sub-list for method output_type
  430. 4, // [4:4] is the sub-list for method input_type
  431. 4, // [4:4] is the sub-list for extension type_name
  432. 4, // [4:4] is the sub-list for extension extendee
  433. 0, // [0:4] is the sub-list for field type_name
  434. }
  435. func init() { file_transport_internet_tls_config_proto_init() }
  436. func file_transport_internet_tls_config_proto_init() {
  437. if File_transport_internet_tls_config_proto != nil {
  438. return
  439. }
  440. type x struct{}
  441. out := protoimpl.TypeBuilder{
  442. File: protoimpl.DescBuilder{
  443. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  444. RawDescriptor: unsafe.Slice(unsafe.StringData(file_transport_internet_tls_config_proto_rawDesc), len(file_transport_internet_tls_config_proto_rawDesc)),
  445. NumEnums: 2,
  446. NumMessages: 2,
  447. NumExtensions: 0,
  448. NumServices: 0,
  449. },
  450. GoTypes: file_transport_internet_tls_config_proto_goTypes,
  451. DependencyIndexes: file_transport_internet_tls_config_proto_depIdxs,
  452. EnumInfos: file_transport_internet_tls_config_proto_enumTypes,
  453. MessageInfos: file_transport_internet_tls_config_proto_msgTypes,
  454. }.Build()
  455. File_transport_internet_tls_config_proto = out.File
  456. file_transport_internet_tls_config_proto_goTypes = nil
  457. file_transport_internet_tls_config_proto_depIdxs = nil
  458. }