Documentation ¶
Overview ¶
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
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Certificate ¶
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 (*Certificate) Descriptor ¶
func (*Certificate) Descriptor() ([]byte, []int)
func (*Certificate) ProtoMessage ¶
func (*Certificate) ProtoMessage()
func (*Certificate) Reset ¶
func (m *Certificate) Reset()
func (*Certificate) String ¶
func (m *Certificate) String() string
type Config ¶
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"` }
func (*Config) BuildCertificates ¶
func (this *Config) BuildCertificates() []tls.Certificate
func (*Config) Descriptor ¶
func (*Config) GetCertificate ¶
func (m *Config) GetCertificate() []*Certificate
func (*Config) GetTLSConfig ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
type Connection ¶ added in v1.19.1
func NewConnection ¶ added in v1.19.1
func NewConnection(conn *tls.Conn) *Connection
func (*Connection) Reusable ¶ added in v1.19.1
func (this *Connection) Reusable() bool
func (*Connection) SetReusable ¶ added in v1.19.1
func (this *Connection) SetReusable(bool)
Click to show internal directories.
Click to hide internal directories.