github.com/Uhtred009/v2ray-core-1@v4.31.2+incompatible/transport/internet/xtls/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.13.0 5 // source: transport/internet/xtls/config.proto 6 7 package xtls 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_xtls_config_proto_enumTypes[0].Descriptor() 62 } 63 64 func (Certificate_Usage) Type() protoreflect.EnumType { 65 return &file_transport_internet_xtls_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_xtls_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 // XTLS certificate in x509 format. 83 Certificate []byte `protobuf:"bytes,1,opt,name=Certificate,proto3" json:"Certificate,omitempty"` 84 // XTLS 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=v2ray.core.transport.internet.xtls.Certificate_Usage" json:"usage,omitempty"` 87 } 88 89 func (x *Certificate) Reset() { 90 *x = Certificate{} 91 if protoimpl.UnsafeEnabled { 92 mi := &file_transport_internet_xtls_config_proto_msgTypes[0] 93 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 94 ms.StoreMessageInfo(mi) 95 } 96 } 97 98 func (x *Certificate) String() string { 99 return protoimpl.X.MessageStringOf(x) 100 } 101 102 func (*Certificate) ProtoMessage() {} 103 104 func (x *Certificate) ProtoReflect() protoreflect.Message { 105 mi := &file_transport_internet_xtls_config_proto_msgTypes[0] 106 if protoimpl.UnsafeEnabled && x != nil { 107 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 108 if ms.LoadMessageInfo() == nil { 109 ms.StoreMessageInfo(mi) 110 } 111 return ms 112 } 113 return mi.MessageOf(x) 114 } 115 116 // Deprecated: Use Certificate.ProtoReflect.Descriptor instead. 117 func (*Certificate) Descriptor() ([]byte, []int) { 118 return file_transport_internet_xtls_config_proto_rawDescGZIP(), []int{0} 119 } 120 121 func (x *Certificate) GetCertificate() []byte { 122 if x != nil { 123 return x.Certificate 124 } 125 return nil 126 } 127 128 func (x *Certificate) GetKey() []byte { 129 if x != nil { 130 return x.Key 131 } 132 return nil 133 } 134 135 func (x *Certificate) GetUsage() Certificate_Usage { 136 if x != nil { 137 return x.Usage 138 } 139 return Certificate_ENCIPHERMENT 140 } 141 142 type Config struct { 143 state protoimpl.MessageState 144 sizeCache protoimpl.SizeCache 145 unknownFields protoimpl.UnknownFields 146 147 // Whether or not to allow self-signed certificates. 148 AllowInsecure bool `protobuf:"varint,1,opt,name=allow_insecure,json=allowInsecure,proto3" json:"allow_insecure,omitempty"` 149 // Whether or not to allow insecure cipher suites. 150 AllowInsecureCiphers bool `protobuf:"varint,5,opt,name=allow_insecure_ciphers,json=allowInsecureCiphers,proto3" json:"allow_insecure_ciphers,omitempty"` 151 // List of certificates to be served on server. 152 Certificate []*Certificate `protobuf:"bytes,2,rep,name=certificate,proto3" json:"certificate,omitempty"` 153 // Override server name. 154 ServerName string `protobuf:"bytes,3,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"` 155 // Lists of string as ALPN values. 156 NextProtocol []string `protobuf:"bytes,4,rep,name=next_protocol,json=nextProtocol,proto3" json:"next_protocol,omitempty"` 157 // Whether or not to disable session (ticket) resumption. 158 DisableSessionResumption bool `protobuf:"varint,6,opt,name=disable_session_resumption,json=disableSessionResumption,proto3" json:"disable_session_resumption,omitempty"` 159 // If true, root certificates on the system will not be loaded for 160 // verification. 161 DisableSystemRoot bool `protobuf:"varint,7,opt,name=disable_system_root,json=disableSystemRoot,proto3" json:"disable_system_root,omitempty"` 162 } 163 164 func (x *Config) Reset() { 165 *x = Config{} 166 if protoimpl.UnsafeEnabled { 167 mi := &file_transport_internet_xtls_config_proto_msgTypes[1] 168 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 169 ms.StoreMessageInfo(mi) 170 } 171 } 172 173 func (x *Config) String() string { 174 return protoimpl.X.MessageStringOf(x) 175 } 176 177 func (*Config) ProtoMessage() {} 178 179 func (x *Config) ProtoReflect() protoreflect.Message { 180 mi := &file_transport_internet_xtls_config_proto_msgTypes[1] 181 if protoimpl.UnsafeEnabled && x != nil { 182 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 183 if ms.LoadMessageInfo() == nil { 184 ms.StoreMessageInfo(mi) 185 } 186 return ms 187 } 188 return mi.MessageOf(x) 189 } 190 191 // Deprecated: Use Config.ProtoReflect.Descriptor instead. 192 func (*Config) Descriptor() ([]byte, []int) { 193 return file_transport_internet_xtls_config_proto_rawDescGZIP(), []int{1} 194 } 195 196 func (x *Config) GetAllowInsecure() bool { 197 if x != nil { 198 return x.AllowInsecure 199 } 200 return false 201 } 202 203 func (x *Config) GetAllowInsecureCiphers() bool { 204 if x != nil { 205 return x.AllowInsecureCiphers 206 } 207 return false 208 } 209 210 func (x *Config) GetCertificate() []*Certificate { 211 if x != nil { 212 return x.Certificate 213 } 214 return nil 215 } 216 217 func (x *Config) GetServerName() string { 218 if x != nil { 219 return x.ServerName 220 } 221 return "" 222 } 223 224 func (x *Config) GetNextProtocol() []string { 225 if x != nil { 226 return x.NextProtocol 227 } 228 return nil 229 } 230 231 func (x *Config) GetDisableSessionResumption() bool { 232 if x != nil { 233 return x.DisableSessionResumption 234 } 235 return false 236 } 237 238 func (x *Config) GetDisableSystemRoot() bool { 239 if x != nil { 240 return x.DisableSystemRoot 241 } 242 return false 243 } 244 245 var File_transport_internet_xtls_config_proto protoreflect.FileDescriptor 246 247 var file_transport_internet_xtls_config_proto_rawDesc = []byte{ 248 0x0a, 0x24, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 249 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 250 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x22, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 251 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 252 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x78, 0x74, 0x6c, 0x73, 0x22, 0xd4, 0x01, 0x0a, 0x0b, 0x43, 253 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x43, 0x65, 254 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 255 0x0b, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 256 0x4b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x4b, 0x65, 0x79, 0x12, 0x4b, 257 0x0a, 0x05, 0x75, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x35, 0x2e, 258 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 259 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x78, 0x74, 260 0x6c, 0x73, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x55, 261 0x73, 0x61, 0x67, 0x65, 0x52, 0x05, 0x75, 0x73, 0x61, 0x67, 0x65, 0x22, 0x44, 0x0a, 0x05, 0x55, 262 0x73, 0x61, 0x67, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x45, 0x4e, 0x43, 0x49, 0x50, 0x48, 0x45, 0x52, 263 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x41, 0x55, 0x54, 0x48, 0x4f, 0x52, 264 0x49, 0x54, 0x59, 0x5f, 0x56, 0x45, 0x52, 0x49, 0x46, 0x59, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 265 0x41, 0x55, 0x54, 0x48, 0x4f, 0x52, 0x49, 0x54, 0x59, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x10, 266 0x02, 0x22, 0xec, 0x02, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x25, 0x0a, 0x0e, 267 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x69, 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x18, 0x01, 268 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x49, 0x6e, 0x73, 0x65, 0x63, 269 0x75, 0x72, 0x65, 0x12, 0x34, 0x0a, 0x16, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x69, 0x6e, 0x73, 270 0x65, 0x63, 0x75, 0x72, 0x65, 0x5f, 0x63, 0x69, 0x70, 0x68, 0x65, 0x72, 0x73, 0x18, 0x05, 0x20, 271 0x01, 0x28, 0x08, 0x52, 0x14, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x49, 0x6e, 0x73, 0x65, 0x63, 0x75, 272 0x72, 0x65, 0x43, 0x69, 0x70, 0x68, 0x65, 0x72, 0x73, 0x12, 0x51, 0x0a, 0x0b, 0x63, 0x65, 0x72, 273 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 274 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 275 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x78, 276 0x74, 0x6c, 0x73, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 277 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 278 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 279 0x09, 0x52, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 280 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x04, 281 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 282 0x6f, 0x6c, 0x12, 0x3c, 0x0a, 0x1a, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x65, 283 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6d, 0x70, 0x74, 0x69, 0x6f, 0x6e, 284 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x18, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x53, 285 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x70, 0x74, 0x69, 0x6f, 0x6e, 286 0x12, 0x2e, 0x0a, 0x13, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x79, 0x73, 0x74, 287 0x65, 0x6d, 0x5f, 0x72, 0x6f, 0x6f, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x64, 288 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x52, 0x6f, 0x6f, 0x74, 289 0x42, 0x77, 0x0a, 0x26, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 290 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 291 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x78, 0x74, 0x6c, 0x73, 0x50, 0x01, 0x5a, 0x26, 0x76, 0x32, 292 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x72, 0x61, 293 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f, 294 0x78, 0x74, 0x6c, 0x73, 0xaa, 0x02, 0x22, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 295 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6e, 0x74, 0x65, 296 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x58, 0x74, 0x6c, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 297 0x33, 298 } 299 300 var ( 301 file_transport_internet_xtls_config_proto_rawDescOnce sync.Once 302 file_transport_internet_xtls_config_proto_rawDescData = file_transport_internet_xtls_config_proto_rawDesc 303 ) 304 305 func file_transport_internet_xtls_config_proto_rawDescGZIP() []byte { 306 file_transport_internet_xtls_config_proto_rawDescOnce.Do(func() { 307 file_transport_internet_xtls_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_xtls_config_proto_rawDescData) 308 }) 309 return file_transport_internet_xtls_config_proto_rawDescData 310 } 311 312 var file_transport_internet_xtls_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 313 var file_transport_internet_xtls_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 314 var file_transport_internet_xtls_config_proto_goTypes = []interface{}{ 315 (Certificate_Usage)(0), // 0: v2ray.core.transport.internet.xtls.Certificate.Usage 316 (*Certificate)(nil), // 1: v2ray.core.transport.internet.xtls.Certificate 317 (*Config)(nil), // 2: v2ray.core.transport.internet.xtls.Config 318 } 319 var file_transport_internet_xtls_config_proto_depIdxs = []int32{ 320 0, // 0: v2ray.core.transport.internet.xtls.Certificate.usage:type_name -> v2ray.core.transport.internet.xtls.Certificate.Usage 321 1, // 1: v2ray.core.transport.internet.xtls.Config.certificate:type_name -> v2ray.core.transport.internet.xtls.Certificate 322 2, // [2:2] is the sub-list for method output_type 323 2, // [2:2] is the sub-list for method input_type 324 2, // [2:2] is the sub-list for extension type_name 325 2, // [2:2] is the sub-list for extension extendee 326 0, // [0:2] is the sub-list for field type_name 327 } 328 329 func init() { file_transport_internet_xtls_config_proto_init() } 330 func file_transport_internet_xtls_config_proto_init() { 331 if File_transport_internet_xtls_config_proto != nil { 332 return 333 } 334 if !protoimpl.UnsafeEnabled { 335 file_transport_internet_xtls_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_xtls_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_xtls_config_proto_rawDesc, 365 NumEnums: 1, 366 NumMessages: 2, 367 NumExtensions: 0, 368 NumServices: 0, 369 }, 370 GoTypes: file_transport_internet_xtls_config_proto_goTypes, 371 DependencyIndexes: file_transport_internet_xtls_config_proto_depIdxs, 372 EnumInfos: file_transport_internet_xtls_config_proto_enumTypes, 373 MessageInfos: file_transport_internet_xtls_config_proto_msgTypes, 374 }.Build() 375 File_transport_internet_xtls_config_proto = out.File 376 file_transport_internet_xtls_config_proto_rawDesc = nil 377 file_transport_internet_xtls_config_proto_goTypes = nil 378 file_transport_internet_xtls_config_proto_depIdxs = nil 379 }