mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 18:17:52 -05:00
120 lines
4.5 KiB
Go
120 lines
4.5 KiB
Go
// Code generated by protoc-gen-go.
|
|
// source: v2ray.com/core/transport/internet/tls/config.proto
|
|
// DO NOT EDIT!
|
|
|
|
/*
|
|
Package tls is a generated protocol buffer package.
|
|
|
|
It is generated from these files:
|
|
v2ray.com/core/transport/internet/tls/config.proto
|
|
|
|
It has these top-level messages:
|
|
Certificate
|
|
Config
|
|
*/
|
|
package tls
|
|
|
|
import proto "github.com/golang/protobuf/proto"
|
|
import fmt "fmt"
|
|
import math "math"
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
type Certificate struct {
|
|
// TLS certificate in x509 format.
|
|
Certificate []byte `protobuf:"bytes,1,opt,name=Certificate,proto3" json:"Certificate,omitempty"`
|
|
// TLS key in x509 format.
|
|
Key []byte `protobuf:"bytes,2,opt,name=Key,proto3" json:"Key,omitempty"`
|
|
}
|
|
|
|
func (m *Certificate) Reset() { *m = Certificate{} }
|
|
func (m *Certificate) String() string { return proto.CompactTextString(m) }
|
|
func (*Certificate) ProtoMessage() {}
|
|
func (*Certificate) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
|
|
|
func (m *Certificate) GetCertificate() []byte {
|
|
if m != nil {
|
|
return m.Certificate
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Certificate) GetKey() []byte {
|
|
if m != nil {
|
|
return m.Key
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Config struct {
|
|
// Whether or not to allow self-signed certificates.
|
|
AllowInsecure bool `protobuf:"varint,1,opt,name=allow_insecure,json=allowInsecure" json:"allow_insecure,omitempty"`
|
|
// List of certificates to be served on server.
|
|
Certificate []*Certificate `protobuf:"bytes,2,rep,name=certificate" json:"certificate,omitempty"`
|
|
// Override server name.
|
|
ServerName string `protobuf:"bytes,3,opt,name=server_name,json=serverName" json:"server_name,omitempty"`
|
|
}
|
|
|
|
func (m *Config) Reset() { *m = Config{} }
|
|
func (m *Config) String() string { return proto.CompactTextString(m) }
|
|
func (*Config) ProtoMessage() {}
|
|
func (*Config) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
|
|
|
func (m *Config) GetAllowInsecure() bool {
|
|
if m != nil {
|
|
return m.AllowInsecure
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *Config) GetCertificate() []*Certificate {
|
|
if m != nil {
|
|
return m.Certificate
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Config) GetServerName() string {
|
|
if m != nil {
|
|
return m.ServerName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*Certificate)(nil), "v2ray.core.transport.internet.tls.Certificate")
|
|
proto.RegisterType((*Config)(nil), "v2ray.core.transport.internet.tls.Config")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("v2ray.com/core/transport/internet/tls/config.proto", fileDescriptor0) }
|
|
|
|
var fileDescriptor0 = []byte{
|
|
// 261 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x84, 0x90, 0xc1, 0x4b, 0xc3, 0x30,
|
|
0x14, 0xc6, 0x69, 0x0b, 0x43, 0x53, 0x15, 0xe9, 0xa9, 0x37, 0xbb, 0xc1, 0xa0, 0xa7, 0x04, 0xea,
|
|
0x5f, 0xe0, 0x7a, 0x1a, 0x82, 0x8c, 0x30, 0x3c, 0x08, 0x32, 0x62, 0x78, 0x93, 0x40, 0x9a, 0x8c,
|
|
0x97, 0xe7, 0xa4, 0xff, 0x8e, 0x47, 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