tls: define wrapper type

This commit is contained in:
Armon Dadgar 2015-05-08 15:54:42 -07:00
parent 9a2f04ea73
commit 6b2390833d

View File

@ -9,6 +9,10 @@ import (
"time" "time"
) )
// Wrapper is a function that is used to wrap a non-TLS connection
// and returns an appropriate TLS connection or error
type Wrapper func(net.Conn) (net.Conn, error)
// Config used to create tls.Config // Config used to create tls.Config
type Config struct { type Config struct {
// VerifyIncoming is used to verify the authenticity of incoming connections. // VerifyIncoming is used to verify the authenticity of incoming connections.