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