config.pb.go 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546
  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. // ECH Config in bytes format
  204. EchConfig []byte `protobuf:"bytes,16,opt,name=ech_config,json=echConfig,proto3" json:"ech_config,omitempty"`
  205. // DOH server to query HTTPS record for ECH
  206. Ech_DOHserver string `protobuf:"bytes,17,opt,name=ech_DOHserver,json=echDOHserver,proto3" json:"ech_DOHserver,omitempty"`
  207. }
  208. func (x *Config) Reset() {
  209. *x = Config{}
  210. if protoimpl.UnsafeEnabled {
  211. mi := &file_transport_internet_tls_config_proto_msgTypes[1]
  212. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  213. ms.StoreMessageInfo(mi)
  214. }
  215. }
  216. func (x *Config) String() string {
  217. return protoimpl.X.MessageStringOf(x)
  218. }
  219. func (*Config) ProtoMessage() {}
  220. func (x *Config) ProtoReflect() protoreflect.Message {
  221. mi := &file_transport_internet_tls_config_proto_msgTypes[1]
  222. if protoimpl.UnsafeEnabled && x != nil {
  223. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  224. if ms.LoadMessageInfo() == nil {
  225. ms.StoreMessageInfo(mi)
  226. }
  227. return ms
  228. }
  229. return mi.MessageOf(x)
  230. }
  231. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  232. func (*Config) Descriptor() ([]byte, []int) {
  233. return file_transport_internet_tls_config_proto_rawDescGZIP(), []int{1}
  234. }
  235. func (x *Config) GetAllowInsecure() bool {
  236. if x != nil {
  237. return x.AllowInsecure
  238. }
  239. return false
  240. }
  241. func (x *Config) GetCertificate() []*Certificate {
  242. if x != nil {
  243. return x.Certificate
  244. }
  245. return nil
  246. }
  247. func (x *Config) GetServerName() string {
  248. if x != nil {
  249. return x.ServerName
  250. }
  251. return ""
  252. }
  253. func (x *Config) GetNextProtocol() []string {
  254. if x != nil {
  255. return x.NextProtocol
  256. }
  257. return nil
  258. }
  259. func (x *Config) GetEnableSessionResumption() bool {
  260. if x != nil {
  261. return x.EnableSessionResumption
  262. }
  263. return false
  264. }
  265. func (x *Config) GetDisableSystemRoot() bool {
  266. if x != nil {
  267. return x.DisableSystemRoot
  268. }
  269. return false
  270. }
  271. func (x *Config) GetPinnedPeerCertificateChainSha256() [][]byte {
  272. if x != nil {
  273. return x.PinnedPeerCertificateChainSha256
  274. }
  275. return nil
  276. }
  277. func (x *Config) GetVerifyClientCertificate() bool {
  278. if x != nil {
  279. return x.VerifyClientCertificate
  280. }
  281. return false
  282. }
  283. func (x *Config) GetMinVersion() Config_TLSVersion {
  284. if x != nil {
  285. return x.MinVersion
  286. }
  287. return Config_Default
  288. }
  289. func (x *Config) GetMaxVersion() Config_TLSVersion {
  290. if x != nil {
  291. return x.MaxVersion
  292. }
  293. return Config_Default
  294. }
  295. func (x *Config) GetAllowInsecureIfPinnedPeerCertificate() bool {
  296. if x != nil {
  297. return x.AllowInsecureIfPinnedPeerCertificate
  298. }
  299. return false
  300. }
  301. func (x *Config) GetEchConfig() []byte {
  302. if x != nil {
  303. return x.EchConfig
  304. }
  305. return nil
  306. }
  307. func (x *Config) GetEch_DOHserver() string {
  308. if x != nil {
  309. return x.Ech_DOHserver
  310. }
  311. return ""
  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, 0x21, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  318. 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65,
  319. 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x74, 0x6c, 0x73, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  320. 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73,
  321. 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd8, 0x02, 0x0a, 0x0b, 0x43,
  322. 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x43, 0x65,
  323. 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52,
  324. 0x0b, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03,
  325. 0x4b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x4b, 0x65, 0x79, 0x12, 0x4a,
  326. 0x0a, 0x05, 0x75, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e,
  327. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73,
  328. 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x74, 0x6c,
  329. 0x73, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x55, 0x73,
  330. 0x61, 0x67, 0x65, 0x52, 0x05, 0x75, 0x73, 0x61, 0x67, 0x65, 0x12, 0x3e, 0x0a, 0x10, 0x63, 0x65,
  331. 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x81,
  332. 0xee, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x11, 0x82, 0xb5, 0x18, 0x0d, 0x22, 0x0b, 0x43, 0x65,
  333. 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x0f, 0x63, 0x65, 0x72, 0x74, 0x69,
  334. 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x26, 0x0a, 0x08, 0x6b, 0x65,
  335. 0x79, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x82, 0xee, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x09,
  336. 0x82, 0xb5, 0x18, 0x05, 0x22, 0x03, 0x4b, 0x65, 0x79, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x46, 0x69,
  337. 0x6c, 0x65, 0x22, 0x61, 0x0a, 0x05, 0x55, 0x73, 0x61, 0x67, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x45,
  338. 0x4e, 0x43, 0x49, 0x50, 0x48, 0x45, 0x52, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x00, 0x12, 0x14, 0x0a,
  339. 0x10, 0x41, 0x55, 0x54, 0x48, 0x4f, 0x52, 0x49, 0x54, 0x59, 0x5f, 0x56, 0x45, 0x52, 0x49, 0x46,
  340. 0x59, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x55, 0x54, 0x48, 0x4f, 0x52, 0x49, 0x54, 0x59,
  341. 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x10, 0x02, 0x12, 0x1b, 0x0a, 0x17, 0x41, 0x55, 0x54, 0x48,
  342. 0x4f, 0x52, 0x49, 0x54, 0x59, 0x5f, 0x56, 0x45, 0x52, 0x49, 0x46, 0x59, 0x5f, 0x43, 0x4c, 0x49,
  343. 0x45, 0x4e, 0x54, 0x10, 0x03, 0x22, 0xf6, 0x06, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  344. 0x12, 0x2d, 0x0a, 0x0e, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x69, 0x6e, 0x73, 0x65, 0x63, 0x75,
  345. 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x42, 0x06, 0x82, 0xb5, 0x18, 0x02, 0x28, 0x01,
  346. 0x52, 0x0d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x49, 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x12,
  347. 0x50, 0x0a, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x02,
  348. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  349. 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65,
  350. 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x74, 0x6c, 0x73, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69,
  351. 0x63, 0x61, 0x74, 0x65, 0x52, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,
  352. 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65,
  353. 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4e, 0x61,
  354. 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  355. 0x63, 0x6f, 0x6c, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x65, 0x78, 0x74, 0x50,
  356. 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x3a, 0x0a, 0x19, 0x65, 0x6e, 0x61, 0x62, 0x6c,
  357. 0x65, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6d, 0x70,
  358. 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x17, 0x65, 0x6e, 0x61, 0x62,
  359. 0x6c, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x70, 0x74,
  360. 0x69, 0x6f, 0x6e, 0x12, 0x2e, 0x0a, 0x13, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73,
  361. 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5f, 0x72, 0x6f, 0x6f, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08,
  362. 0x52, 0x11, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x52,
  363. 0x6f, 0x6f, 0x74, 0x12, 0x4e, 0x0a, 0x24, 0x70, 0x69, 0x6e, 0x6e, 0x65, 0x64, 0x5f, 0x70, 0x65,
  364. 0x65, 0x72, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x63,
  365. 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x73, 0x68, 0x61, 0x32, 0x35, 0x36, 0x18, 0x07, 0x20, 0x03, 0x28,
  366. 0x0c, 0x52, 0x20, 0x70, 0x69, 0x6e, 0x6e, 0x65, 0x64, 0x50, 0x65, 0x65, 0x72, 0x43, 0x65, 0x72,
  367. 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x53, 0x68, 0x61,
  368. 0x32, 0x35, 0x36, 0x12, 0x3a, 0x0a, 0x19, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x63, 0x6c,
  369. 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65,
  370. 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x17, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x43, 0x6c,
  371. 0x69, 0x65, 0x6e, 0x74, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12,
  372. 0x55, 0x0a, 0x0b, 0x6d, 0x69, 0x6e, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x09,
  373. 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  374. 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65,
  375. 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x74, 0x6c, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,
  376. 0x54, 0x4c, 0x53, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x6d, 0x69, 0x6e, 0x56,
  377. 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x55, 0x0a, 0x0b, 0x6d, 0x61, 0x78, 0x5f, 0x76, 0x65,
  378. 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x76, 0x32,
  379. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f,
  380. 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x74, 0x6c, 0x73, 0x2e,
  381. 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x54, 0x4c, 0x53, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f,
  382. 0x6e, 0x52, 0x0a, 0x6d, 0x61, 0x78, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x57, 0x0a,
  383. 0x29, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x69, 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x5f,
  384. 0x69, 0x66, 0x5f, 0x70, 0x69, 0x6e, 0x6e, 0x65, 0x64, 0x5f, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x63,
  385. 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08,
  386. 0x52, 0x24, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x49, 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x49,
  387. 0x66, 0x50, 0x69, 0x6e, 0x6e, 0x65, 0x64, 0x50, 0x65, 0x65, 0x72, 0x43, 0x65, 0x72, 0x74, 0x69,
  388. 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x63, 0x68, 0x5f, 0x63, 0x6f,
  389. 0x6e, 0x66, 0x69, 0x67, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x65, 0x63, 0x68, 0x43,
  390. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x63, 0x68, 0x5f, 0x44, 0x4f, 0x48,
  391. 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x63,
  392. 0x68, 0x44, 0x4f, 0x48, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x22, 0x49, 0x0a, 0x0a, 0x54, 0x4c,
  393. 0x53, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x65, 0x66, 0x61,
  394. 0x75, 0x6c, 0x74, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x54, 0x4c, 0x53, 0x31, 0x5f, 0x30, 0x10,
  395. 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x54, 0x4c, 0x53, 0x31, 0x5f, 0x31, 0x10, 0x02, 0x12, 0x0a, 0x0a,
  396. 0x06, 0x54, 0x4c, 0x53, 0x31, 0x5f, 0x32, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x54, 0x4c, 0x53,
  397. 0x31, 0x5f, 0x33, 0x10, 0x04, 0x3a, 0x17, 0x82, 0xb5, 0x18, 0x13, 0x0a, 0x08, 0x73, 0x65, 0x63,
  398. 0x75, 0x72, 0x69, 0x74, 0x79, 0x12, 0x03, 0x74, 0x6c, 0x73, 0x90, 0xff, 0x29, 0x01, 0x42, 0x84,
  399. 0x01, 0x0a, 0x25, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  400. 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65,
  401. 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x74, 0x6c, 0x73, 0x50, 0x01, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68,
  402. 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72,
  403. 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73,
  404. 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x74, 0x6c,
  405. 0x73, 0xaa, 0x02, 0x21, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x54,
  406. 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65,
  407. 0x74, 0x2e, 0x54, 0x6c, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  408. }
  409. var (
  410. file_transport_internet_tls_config_proto_rawDescOnce sync.Once
  411. file_transport_internet_tls_config_proto_rawDescData = file_transport_internet_tls_config_proto_rawDesc
  412. )
  413. func file_transport_internet_tls_config_proto_rawDescGZIP() []byte {
  414. file_transport_internet_tls_config_proto_rawDescOnce.Do(func() {
  415. file_transport_internet_tls_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_tls_config_proto_rawDescData)
  416. })
  417. return file_transport_internet_tls_config_proto_rawDescData
  418. }
  419. var file_transport_internet_tls_config_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
  420. var file_transport_internet_tls_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  421. var file_transport_internet_tls_config_proto_goTypes = []any{
  422. (Certificate_Usage)(0), // 0: v2ray.core.transport.internet.tls.Certificate.Usage
  423. (Config_TLSVersion)(0), // 1: v2ray.core.transport.internet.tls.Config.TLSVersion
  424. (*Certificate)(nil), // 2: v2ray.core.transport.internet.tls.Certificate
  425. (*Config)(nil), // 3: v2ray.core.transport.internet.tls.Config
  426. }
  427. var file_transport_internet_tls_config_proto_depIdxs = []int32{
  428. 0, // 0: v2ray.core.transport.internet.tls.Certificate.usage:type_name -> v2ray.core.transport.internet.tls.Certificate.Usage
  429. 2, // 1: v2ray.core.transport.internet.tls.Config.certificate:type_name -> v2ray.core.transport.internet.tls.Certificate
  430. 1, // 2: v2ray.core.transport.internet.tls.Config.min_version:type_name -> v2ray.core.transport.internet.tls.Config.TLSVersion
  431. 1, // 3: v2ray.core.transport.internet.tls.Config.max_version:type_name -> v2ray.core.transport.internet.tls.Config.TLSVersion
  432. 4, // [4:4] is the sub-list for method output_type
  433. 4, // [4:4] is the sub-list for method input_type
  434. 4, // [4:4] is the sub-list for extension type_name
  435. 4, // [4:4] is the sub-list for extension extendee
  436. 0, // [0:4] is the sub-list for field type_name
  437. }
  438. func init() { file_transport_internet_tls_config_proto_init() }
  439. func file_transport_internet_tls_config_proto_init() {
  440. if File_transport_internet_tls_config_proto != nil {
  441. return
  442. }
  443. if !protoimpl.UnsafeEnabled {
  444. file_transport_internet_tls_config_proto_msgTypes[0].Exporter = func(v any, i int) any {
  445. switch v := v.(*Certificate); i {
  446. case 0:
  447. return &v.state
  448. case 1:
  449. return &v.sizeCache
  450. case 2:
  451. return &v.unknownFields
  452. default:
  453. return nil
  454. }
  455. }
  456. file_transport_internet_tls_config_proto_msgTypes[1].Exporter = func(v any, i int) any {
  457. switch v := v.(*Config); i {
  458. case 0:
  459. return &v.state
  460. case 1:
  461. return &v.sizeCache
  462. case 2:
  463. return &v.unknownFields
  464. default:
  465. return nil
  466. }
  467. }
  468. }
  469. type x struct{}
  470. out := protoimpl.TypeBuilder{
  471. File: protoimpl.DescBuilder{
  472. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  473. RawDescriptor: file_transport_internet_tls_config_proto_rawDesc,
  474. NumEnums: 2,
  475. NumMessages: 2,
  476. NumExtensions: 0,
  477. NumServices: 0,
  478. },
  479. GoTypes: file_transport_internet_tls_config_proto_goTypes,
  480. DependencyIndexes: file_transport_internet_tls_config_proto_depIdxs,
  481. EnumInfos: file_transport_internet_tls_config_proto_enumTypes,
  482. MessageInfos: file_transport_internet_tls_config_proto_msgTypes,
  483. }.Build()
  484. File_transport_internet_tls_config_proto = out.File
  485. file_transport_internet_tls_config_proto_rawDesc = nil
  486. file_transport_internet_tls_config_proto_goTypes = nil
  487. file_transport_internet_tls_config_proto_depIdxs = nil
  488. }