config.pb.go 17 KB

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