config.pb.go 22 KB

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