config.pb.go 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418
  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 Certificate struct {
  59. state protoimpl.MessageState
  60. sizeCache protoimpl.SizeCache
  61. unknownFields protoimpl.UnknownFields
  62. // TLS certificate in x509 format.
  63. Certificate []byte `protobuf:"bytes,1,opt,name=Certificate,proto3" json:"Certificate,omitempty"`
  64. // TLS key in x509 format.
  65. Key []byte `protobuf:"bytes,2,opt,name=Key,proto3" json:"Key,omitempty"`
  66. Usage Certificate_Usage `protobuf:"varint,3,opt,name=usage,proto3,enum=v2ray.core.transport.internet.tls.Certificate_Usage" json:"usage,omitempty"`
  67. CertificateFile string `protobuf:"bytes,96001,opt,name=certificate_file,json=certificateFile,proto3" json:"certificate_file,omitempty"`
  68. KeyFile string `protobuf:"bytes,96002,opt,name=key_file,json=keyFile,proto3" json:"key_file,omitempty"`
  69. }
  70. func (x *Certificate) Reset() {
  71. *x = Certificate{}
  72. if protoimpl.UnsafeEnabled {
  73. mi := &file_transport_internet_tls_config_proto_msgTypes[0]
  74. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  75. ms.StoreMessageInfo(mi)
  76. }
  77. }
  78. func (x *Certificate) String() string {
  79. return protoimpl.X.MessageStringOf(x)
  80. }
  81. func (*Certificate) ProtoMessage() {}
  82. func (x *Certificate) ProtoReflect() protoreflect.Message {
  83. mi := &file_transport_internet_tls_config_proto_msgTypes[0]
  84. if protoimpl.UnsafeEnabled && x != nil {
  85. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  86. if ms.LoadMessageInfo() == nil {
  87. ms.StoreMessageInfo(mi)
  88. }
  89. return ms
  90. }
  91. return mi.MessageOf(x)
  92. }
  93. // Deprecated: Use Certificate.ProtoReflect.Descriptor instead.
  94. func (*Certificate) Descriptor() ([]byte, []int) {
  95. return file_transport_internet_tls_config_proto_rawDescGZIP(), []int{0}
  96. }
  97. func (x *Certificate) GetCertificate() []byte {
  98. if x != nil {
  99. return x.Certificate
  100. }
  101. return nil
  102. }
  103. func (x *Certificate) GetKey() []byte {
  104. if x != nil {
  105. return x.Key
  106. }
  107. return nil
  108. }
  109. func (x *Certificate) GetUsage() Certificate_Usage {
  110. if x != nil {
  111. return x.Usage
  112. }
  113. return Certificate_ENCIPHERMENT
  114. }
  115. func (x *Certificate) GetCertificateFile() string {
  116. if x != nil {
  117. return x.CertificateFile
  118. }
  119. return ""
  120. }
  121. func (x *Certificate) GetKeyFile() string {
  122. if x != nil {
  123. return x.KeyFile
  124. }
  125. return ""
  126. }
  127. type Config struct {
  128. state protoimpl.MessageState
  129. sizeCache protoimpl.SizeCache
  130. unknownFields protoimpl.UnknownFields
  131. // Whether or not to allow self-signed certificates.
  132. AllowInsecure bool `protobuf:"varint,1,opt,name=allow_insecure,json=allowInsecure,proto3" json:"allow_insecure,omitempty"`
  133. // List of certificates to be served on server.
  134. Certificate []*Certificate `protobuf:"bytes,2,rep,name=certificate,proto3" json:"certificate,omitempty"`
  135. // Override server name.
  136. ServerName string `protobuf:"bytes,3,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"`
  137. // Lists of string as ALPN values.
  138. NextProtocol []string `protobuf:"bytes,4,rep,name=next_protocol,json=nextProtocol,proto3" json:"next_protocol,omitempty"`
  139. // Whether or not to enable session (ticket) resumption.
  140. EnableSessionResumption bool `protobuf:"varint,5,opt,name=enable_session_resumption,json=enableSessionResumption,proto3" json:"enable_session_resumption,omitempty"`
  141. // If true, root certificates on the system will not be loaded for
  142. // verification.
  143. DisableSystemRoot bool `protobuf:"varint,6,opt,name=disable_system_root,json=disableSystemRoot,proto3" json:"disable_system_root,omitempty"`
  144. // @Document A pinned certificate chain sha256 hash.
  145. // @Document If the server's hash does not match this value, the connection will be aborted.
  146. // @Document This value replace allow_insecure.
  147. // @Critical
  148. PinnedPeerCertificateChainSha256 [][]byte `protobuf:"bytes,7,rep,name=pinned_peer_certificate_chain_sha256,json=pinnedPeerCertificateChainSha256,proto3" json:"pinned_peer_certificate_chain_sha256,omitempty"`
  149. // If true, the client is required to present a certificate.
  150. VerifyClientCertificate bool `protobuf:"varint,8,opt,name=verify_client_certificate,json=verifyClientCertificate,proto3" json:"verify_client_certificate,omitempty"`
  151. }
  152. func (x *Config) Reset() {
  153. *x = Config{}
  154. if protoimpl.UnsafeEnabled {
  155. mi := &file_transport_internet_tls_config_proto_msgTypes[1]
  156. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  157. ms.StoreMessageInfo(mi)
  158. }
  159. }
  160. func (x *Config) String() string {
  161. return protoimpl.X.MessageStringOf(x)
  162. }
  163. func (*Config) ProtoMessage() {}
  164. func (x *Config) ProtoReflect() protoreflect.Message {
  165. mi := &file_transport_internet_tls_config_proto_msgTypes[1]
  166. if protoimpl.UnsafeEnabled && x != nil {
  167. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  168. if ms.LoadMessageInfo() == nil {
  169. ms.StoreMessageInfo(mi)
  170. }
  171. return ms
  172. }
  173. return mi.MessageOf(x)
  174. }
  175. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  176. func (*Config) Descriptor() ([]byte, []int) {
  177. return file_transport_internet_tls_config_proto_rawDescGZIP(), []int{1}
  178. }
  179. func (x *Config) GetAllowInsecure() bool {
  180. if x != nil {
  181. return x.AllowInsecure
  182. }
  183. return false
  184. }
  185. func (x *Config) GetCertificate() []*Certificate {
  186. if x != nil {
  187. return x.Certificate
  188. }
  189. return nil
  190. }
  191. func (x *Config) GetServerName() string {
  192. if x != nil {
  193. return x.ServerName
  194. }
  195. return ""
  196. }
  197. func (x *Config) GetNextProtocol() []string {
  198. if x != nil {
  199. return x.NextProtocol
  200. }
  201. return nil
  202. }
  203. func (x *Config) GetEnableSessionResumption() bool {
  204. if x != nil {
  205. return x.EnableSessionResumption
  206. }
  207. return false
  208. }
  209. func (x *Config) GetDisableSystemRoot() bool {
  210. if x != nil {
  211. return x.DisableSystemRoot
  212. }
  213. return false
  214. }
  215. func (x *Config) GetPinnedPeerCertificateChainSha256() [][]byte {
  216. if x != nil {
  217. return x.PinnedPeerCertificateChainSha256
  218. }
  219. return nil
  220. }
  221. func (x *Config) GetVerifyClientCertificate() bool {
  222. if x != nil {
  223. return x.VerifyClientCertificate
  224. }
  225. return false
  226. }
  227. var File_transport_internet_tls_config_proto protoreflect.FileDescriptor
  228. var file_transport_internet_tls_config_proto_rawDesc = []byte{
  229. 0x0a, 0x23, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65,
  230. 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x74, 0x6c, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,
  231. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x21, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  232. 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65,
  233. 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x74, 0x6c, 0x73, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  234. 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73,
  235. 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd8, 0x02, 0x0a, 0x0b, 0x43,
  236. 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x43, 0x65,
  237. 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52,
  238. 0x0b, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03,
  239. 0x4b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x4b, 0x65, 0x79, 0x12, 0x4a,
  240. 0x0a, 0x05, 0x75, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e,
  241. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73,
  242. 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x74, 0x6c,
  243. 0x73, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x55, 0x73,
  244. 0x61, 0x67, 0x65, 0x52, 0x05, 0x75, 0x73, 0x61, 0x67, 0x65, 0x12, 0x3e, 0x0a, 0x10, 0x63, 0x65,
  245. 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x81,
  246. 0xee, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x11, 0x82, 0xb5, 0x18, 0x0d, 0x22, 0x0b, 0x43, 0x65,
  247. 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x0f, 0x63, 0x65, 0x72, 0x74, 0x69,
  248. 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x26, 0x0a, 0x08, 0x6b, 0x65,
  249. 0x79, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x82, 0xee, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x09,
  250. 0x82, 0xb5, 0x18, 0x05, 0x22, 0x03, 0x4b, 0x65, 0x79, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x46, 0x69,
  251. 0x6c, 0x65, 0x22, 0x61, 0x0a, 0x05, 0x55, 0x73, 0x61, 0x67, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x45,
  252. 0x4e, 0x43, 0x49, 0x50, 0x48, 0x45, 0x52, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x00, 0x12, 0x14, 0x0a,
  253. 0x10, 0x41, 0x55, 0x54, 0x48, 0x4f, 0x52, 0x49, 0x54, 0x59, 0x5f, 0x56, 0x45, 0x52, 0x49, 0x46,
  254. 0x59, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x55, 0x54, 0x48, 0x4f, 0x52, 0x49, 0x54, 0x59,
  255. 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x10, 0x02, 0x12, 0x1b, 0x0a, 0x17, 0x41, 0x55, 0x54, 0x48,
  256. 0x4f, 0x52, 0x49, 0x54, 0x59, 0x5f, 0x56, 0x45, 0x52, 0x49, 0x46, 0x59, 0x5f, 0x43, 0x4c, 0x49,
  257. 0x45, 0x4e, 0x54, 0x10, 0x03, 0x22, 0xe0, 0x03, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  258. 0x12, 0x2d, 0x0a, 0x0e, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x69, 0x6e, 0x73, 0x65, 0x63, 0x75,
  259. 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x42, 0x06, 0x82, 0xb5, 0x18, 0x02, 0x28, 0x01,
  260. 0x52, 0x0d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x49, 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x12,
  261. 0x50, 0x0a, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x02,
  262. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  263. 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65,
  264. 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x74, 0x6c, 0x73, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69,
  265. 0x63, 0x61, 0x74, 0x65, 0x52, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,
  266. 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65,
  267. 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4e, 0x61,
  268. 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  269. 0x63, 0x6f, 0x6c, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x65, 0x78, 0x74, 0x50,
  270. 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x3a, 0x0a, 0x19, 0x65, 0x6e, 0x61, 0x62, 0x6c,
  271. 0x65, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6d, 0x70,
  272. 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x17, 0x65, 0x6e, 0x61, 0x62,
  273. 0x6c, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x70, 0x74,
  274. 0x69, 0x6f, 0x6e, 0x12, 0x2e, 0x0a, 0x13, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73,
  275. 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5f, 0x72, 0x6f, 0x6f, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08,
  276. 0x52, 0x11, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x52,
  277. 0x6f, 0x6f, 0x74, 0x12, 0x4e, 0x0a, 0x24, 0x70, 0x69, 0x6e, 0x6e, 0x65, 0x64, 0x5f, 0x70, 0x65,
  278. 0x65, 0x72, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x63,
  279. 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x73, 0x68, 0x61, 0x32, 0x35, 0x36, 0x18, 0x07, 0x20, 0x03, 0x28,
  280. 0x0c, 0x52, 0x20, 0x70, 0x69, 0x6e, 0x6e, 0x65, 0x64, 0x50, 0x65, 0x65, 0x72, 0x43, 0x65, 0x72,
  281. 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x53, 0x68, 0x61,
  282. 0x32, 0x35, 0x36, 0x12, 0x3a, 0x0a, 0x19, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x63, 0x6c,
  283. 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65,
  284. 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x17, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x43, 0x6c,
  285. 0x69, 0x65, 0x6e, 0x74, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x3a,
  286. 0x17, 0x82, 0xb5, 0x18, 0x0a, 0x0a, 0x08, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x82,
  287. 0xb5, 0x18, 0x05, 0x12, 0x03, 0x74, 0x6c, 0x73, 0x42, 0x84, 0x01, 0x0a, 0x25, 0x63, 0x6f, 0x6d,
  288. 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e,
  289. 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x74,
  290. 0x6c, 0x73, 0x50, 0x01, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
  291. 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72,
  292. 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69,
  293. 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x74, 0x6c, 0x73, 0xaa, 0x02, 0x21, 0x56, 0x32,
  294. 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f,
  295. 0x72, 0x74, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x54, 0x6c, 0x73, 0x62,
  296. 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  297. }
  298. var (
  299. file_transport_internet_tls_config_proto_rawDescOnce sync.Once
  300. file_transport_internet_tls_config_proto_rawDescData = file_transport_internet_tls_config_proto_rawDesc
  301. )
  302. func file_transport_internet_tls_config_proto_rawDescGZIP() []byte {
  303. file_transport_internet_tls_config_proto_rawDescOnce.Do(func() {
  304. file_transport_internet_tls_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_tls_config_proto_rawDescData)
  305. })
  306. return file_transport_internet_tls_config_proto_rawDescData
  307. }
  308. var file_transport_internet_tls_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  309. var file_transport_internet_tls_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  310. var file_transport_internet_tls_config_proto_goTypes = []interface{}{
  311. (Certificate_Usage)(0), // 0: v2ray.core.transport.internet.tls.Certificate.Usage
  312. (*Certificate)(nil), // 1: v2ray.core.transport.internet.tls.Certificate
  313. (*Config)(nil), // 2: v2ray.core.transport.internet.tls.Config
  314. }
  315. var file_transport_internet_tls_config_proto_depIdxs = []int32{
  316. 0, // 0: v2ray.core.transport.internet.tls.Certificate.usage:type_name -> v2ray.core.transport.internet.tls.Certificate.Usage
  317. 1, // 1: v2ray.core.transport.internet.tls.Config.certificate:type_name -> v2ray.core.transport.internet.tls.Certificate
  318. 2, // [2:2] is the sub-list for method output_type
  319. 2, // [2:2] is the sub-list for method input_type
  320. 2, // [2:2] is the sub-list for extension type_name
  321. 2, // [2:2] is the sub-list for extension extendee
  322. 0, // [0:2] is the sub-list for field type_name
  323. }
  324. func init() { file_transport_internet_tls_config_proto_init() }
  325. func file_transport_internet_tls_config_proto_init() {
  326. if File_transport_internet_tls_config_proto != nil {
  327. return
  328. }
  329. if !protoimpl.UnsafeEnabled {
  330. file_transport_internet_tls_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  331. switch v := v.(*Certificate); i {
  332. case 0:
  333. return &v.state
  334. case 1:
  335. return &v.sizeCache
  336. case 2:
  337. return &v.unknownFields
  338. default:
  339. return nil
  340. }
  341. }
  342. file_transport_internet_tls_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  343. switch v := v.(*Config); i {
  344. case 0:
  345. return &v.state
  346. case 1:
  347. return &v.sizeCache
  348. case 2:
  349. return &v.unknownFields
  350. default:
  351. return nil
  352. }
  353. }
  354. }
  355. type x struct{}
  356. out := protoimpl.TypeBuilder{
  357. File: protoimpl.DescBuilder{
  358. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  359. RawDescriptor: file_transport_internet_tls_config_proto_rawDesc,
  360. NumEnums: 1,
  361. NumMessages: 2,
  362. NumExtensions: 0,
  363. NumServices: 0,
  364. },
  365. GoTypes: file_transport_internet_tls_config_proto_goTypes,
  366. DependencyIndexes: file_transport_internet_tls_config_proto_depIdxs,
  367. EnumInfos: file_transport_internet_tls_config_proto_enumTypes,
  368. MessageInfos: file_transport_internet_tls_config_proto_msgTypes,
  369. }.Build()
  370. File_transport_internet_tls_config_proto = out.File
  371. file_transport_internet_tls_config_proto_rawDesc = nil
  372. file_transport_internet_tls_config_proto_goTypes = nil
  373. file_transport_internet_tls_config_proto_depIdxs = nil
  374. }