1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-30 11:05:24 +00:00
v2fly/transport/internet/tls/config.pb.go

240 lines
9.0 KiB
Go
Raw Normal View History

2017-01-02 19:52:45 +00:00
package tls
2018-09-17 13:12:58 +00:00
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
2017-01-02 19:52:45 +00:00
// 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.
2018-12-01 16:39:51 +00:00
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
2017-01-02 19:52:45 +00:00
type Certificate_Usage int32
const (
Certificate_ENCIPHERMENT Certificate_Usage = 0
Certificate_AUTHORITY_VERIFY Certificate_Usage = 1
Certificate_AUTHORITY_ISSUE Certificate_Usage = 2
)
var Certificate_Usage_name = map[int32]string{
0: "ENCIPHERMENT",
1: "AUTHORITY_VERIFY",
2: "AUTHORITY_ISSUE",
}
2018-09-14 09:00:59 +00:00
var Certificate_Usage_value = map[string]int32{
"ENCIPHERMENT": 0,
"AUTHORITY_VERIFY": 1,
"AUTHORITY_ISSUE": 2,
}
func (x Certificate_Usage) String() string {
return proto.EnumName(Certificate_Usage_name, int32(x))
}
2018-09-14 09:00:59 +00:00
2018-05-25 09:56:01 +00:00
func (Certificate_Usage) EnumDescriptor() ([]byte, []int) {
2018-09-14 09:00:59 +00:00
return fileDescriptor_42ed70cad60a2736, []int{0, 0}
2018-05-25 09:56:01 +00:00
}
2017-01-02 19:52:45 +00:00
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.
2018-05-25 09:56:01 +00:00
Key []byte `protobuf:"bytes,2,opt,name=Key,proto3" json:"Key,omitempty"`
2018-06-26 14:28:54 +00:00
Usage Certificate_Usage `protobuf:"varint,3,opt,name=usage,proto3,enum=v2ray.core.transport.internet.tls.Certificate_Usage" json:"usage,omitempty"`
2018-05-25 09:56:01 +00:00
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
2017-01-02 19:52:45 +00:00
}
2018-05-25 09:56:01 +00:00
func (m *Certificate) Reset() { *m = Certificate{} }
func (m *Certificate) String() string { return proto.CompactTextString(m) }
func (*Certificate) ProtoMessage() {}
func (*Certificate) Descriptor() ([]byte, []int) {
2018-09-14 09:00:59 +00:00
return fileDescriptor_42ed70cad60a2736, []int{0}
2018-05-25 09:56:01 +00:00
}
2018-09-30 16:39:28 +00:00
2018-05-25 09:56:01 +00:00
func (m *Certificate) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Certificate.Unmarshal(m, b)
}
func (m *Certificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Certificate.Marshal(b, m, deterministic)
}
2018-09-14 09:00:59 +00:00
func (m *Certificate) XXX_Merge(src proto.Message) {
xxx_messageInfo_Certificate.Merge(m, src)
2018-05-25 09:56:01 +00:00
}
func (m *Certificate) XXX_Size() int {
return xxx_messageInfo_Certificate.Size(m)
}
func (m *Certificate) XXX_DiscardUnknown() {
xxx_messageInfo_Certificate.DiscardUnknown(m)
}
var xxx_messageInfo_Certificate proto.InternalMessageInfo
2017-01-02 19:52:45 +00:00
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
}
func (m *Certificate) GetUsage() Certificate_Usage {
if m != nil {
return m.Usage
}
return Certificate_ENCIPHERMENT
}
2017-01-02 19:52:45 +00:00
type Config struct {
// Whether or not to allow self-signed certificates.
2018-06-26 14:28:54 +00:00
AllowInsecure bool `protobuf:"varint,1,opt,name=allow_insecure,json=allowInsecure,proto3" json:"allow_insecure,omitempty"`
// Whether or not to allow insecure cipher suites.
2018-06-26 14:28:54 +00:00
AllowInsecureCiphers bool `protobuf:"varint,5,opt,name=allow_insecure_ciphers,json=allowInsecureCiphers,proto3" json:"allow_insecure_ciphers,omitempty"`
2017-01-02 19:52:45 +00:00
// List of certificates to be served on server.
2018-06-26 14:28:54 +00:00
Certificate []*Certificate `protobuf:"bytes,2,rep,name=certificate,proto3" json:"certificate,omitempty"`
2017-01-02 19:52:45 +00:00
// Override server name.
2018-06-26 14:28:54 +00:00
ServerName string `protobuf:"bytes,3,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"`
2018-01-02 17:16:36 +00:00
// Lists of string as ALPN values.
NextProtocol []string `protobuf:"bytes,4,rep,name=next_protocol,json=nextProtocol,proto3" json:"next_protocol,omitempty"`
// Whether or not to disable session (ticket) resumption.
DisableSessionResumption bool `protobuf:"varint,6,opt,name=disable_session_resumption,json=disableSessionResumption,proto3" json:"disable_session_resumption,omitempty"`
// If true, root certificates on the system will not be loaded for verification.
DisableSystemRoot bool `protobuf:"varint,7,opt,name=disable_system_root,json=disableSystemRoot,proto3" json:"disable_system_root,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
2017-01-02 19:52:45 +00:00
}
2018-05-25 09:56:01 +00:00
func (m *Config) Reset() { *m = Config{} }
func (m *Config) String() string { return proto.CompactTextString(m) }
func (*Config) ProtoMessage() {}
func (*Config) Descriptor() ([]byte, []int) {
2018-09-14 09:00:59 +00:00
return fileDescriptor_42ed70cad60a2736, []int{1}
2018-05-25 09:56:01 +00:00
}
2018-09-30 16:39:28 +00:00
2018-05-25 09:56:01 +00:00
func (m *Config) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Config.Unmarshal(m, b)
}
func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Config.Marshal(b, m, deterministic)
}
2018-09-14 09:00:59 +00:00
func (m *Config) XXX_Merge(src proto.Message) {
xxx_messageInfo_Config.Merge(m, src)
2018-05-25 09:56:01 +00:00
}
func (m *Config) XXX_Size() int {
return xxx_messageInfo_Config.Size(m)
}
func (m *Config) XXX_DiscardUnknown() {
xxx_messageInfo_Config.DiscardUnknown(m)
}
var xxx_messageInfo_Config proto.InternalMessageInfo
2017-01-02 19:52:45 +00:00
func (m *Config) GetAllowInsecure() bool {
if m != nil {
return m.AllowInsecure
}
return false
}
func (m *Config) GetAllowInsecureCiphers() bool {
if m != nil {
return m.AllowInsecureCiphers
}
return false
}
2017-01-02 19:52:45 +00:00
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 ""
}
2018-01-02 17:16:36 +00:00
func (m *Config) GetNextProtocol() []string {
if m != nil {
return m.NextProtocol
}
return nil
}
func (m *Config) GetDisableSessionResumption() bool {
if m != nil {
return m.DisableSessionResumption
}
return false
}
func (m *Config) GetDisableSystemRoot() bool {
if m != nil {
return m.DisableSystemRoot
}
return false
}
2017-01-02 19:52:45 +00:00
func init() {
2018-09-30 16:39:28 +00:00
proto.RegisterEnum("v2ray.core.transport.internet.tls.Certificate_Usage", Certificate_Usage_name, Certificate_Usage_value)
2017-01-02 19:52:45 +00:00
proto.RegisterType((*Certificate)(nil), "v2ray.core.transport.internet.tls.Certificate")
proto.RegisterType((*Config)(nil), "v2ray.core.transport.internet.tls.Config")
}
2018-05-25 09:56:01 +00:00
func init() {
2018-09-14 09:00:59 +00:00
proto.RegisterFile("v2ray.com/core/transport/internet/tls/config.proto", fileDescriptor_42ed70cad60a2736)
}
2018-09-14 09:00:59 +00:00
var fileDescriptor_42ed70cad60a2736 = []byte{
// 435 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x91, 0xd1, 0x6e, 0xd3, 0x30,
0x14, 0x86, 0x49, 0x43, 0x0b, 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