Documentation
¶
Index ¶
- Constants
- func NewState(c protocol.Context) interface{}
- func Protocol() protocol.Payload
- type BuffConn
- func (conn BuffConn) Close() error
- func (conn BuffConn) LocalAddr() net.Addr
- func (conn BuffConn) NeedsMoreData() bool
- func (conn BuffConn) OutboundData() []byte
- func (conn *BuffConn) Read(p []byte) (int, error)
- func (conn BuffConn) RemoteAddr() net.Addr
- func (conn BuffConn) SetDeadline(t time.Time) error
- func (conn BuffConn) SetReadDeadline(t time.Time) error
- func (conn BuffConn) SetWriteDeadline(t time.Time) error
- func (conn *BuffConn) UpdateData(data []byte)
- func (conn BuffConn) Write(p []byte) (int, error)
- type Flag
- type Payload
- func (p *Payload) Decode(raw []byte) error
- func (p *Payload) Encode() ([]byte, error)
- func (p *Payload) Handle(ctx protocol.Context) protocol.Payload
- func (p *Payload) HasInner() protocol.Payload
- func (p *Payload) ModifyRADIUSResponse(r *radius.Packet, q *radius.Packet) error
- func (p *Payload) Offerable() bool
- func (p *Payload) String() string
- func (p *Payload) Type() protocol.Type
- type Settings
- type State
- type TLSConfig
Constants ¶
View Source
const TypeTLS protocol.Type = 13
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BuffConn ¶
type BuffConn struct {
// contains filtered or unexported fields
}
func NewBuffConn ¶
func (BuffConn) NeedsMoreData ¶
func (BuffConn) OutboundData ¶
func (BuffConn) RemoteAddr ¶
func (*BuffConn) UpdateData ¶
type Payload ¶
type Payload struct {
Flags Flag
Length uint32
Data []byte
Inner protocol.Payload
// contains filtered or unexported fields
}
func (*Payload) ModifyRADIUSResponse ¶
type Settings ¶
type State ¶
type State struct {
RemainingChunks [][]byte
HandshakeDone bool
FinalStatus protocol.Status
ClientHello *tls.ClientHelloInfo
MPPEKey []byte
TotalPayloadSize int
TLS *tls.Conn
Conn *BuffConn
Context context.Context
ContextCancel context.CancelFunc
HandshakeCtx protocol.Context
Logger protocol.Logger
}
Click to show internal directories.
Click to hide internal directories.