tls

package
v2.3.3+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2016 License: MIT Imports: 5 Imported by: 2

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 {
	Certificate []byte `protobuf:"bytes,1,opt,name=Certificate,proto3" json:"Certificate,omitempty"`
	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 {
	AllowInsecure bool           `protobuf:"varint,1,opt,name=allow_insecure,json=allowInsecure" json:"allow_insecure,omitempty"`
	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) Descriptor() ([]byte, []int)

func (*Config) GetCertificate

func (m *Config) GetCertificate() []*Certificate

func (*Config) GetTLSConfig

func (this *Config) GetTLSConfig() *tls.Config

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) Reset

func (m *Config) Reset()

func (*Config) String

func (m *Config) String() string

type Connection

type Connection struct {
	*tls.Conn
}

func NewConnection

func NewConnection(conn *tls.Conn) *Connection

func (*Connection) Reusable

func (this *Connection) Reusable() bool

func (*Connection) SetReusable

func (this *Connection) SetReusable(bool)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL