tls: define wrapper type

This commit is contained in:
Armon Dadgar 2015-05-08 15:54:42 -07:00
parent 9a2f04ea73
commit 6b2390833d
1 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,10 @@ import (
"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
type Config struct {
// VerifyIncoming is used to verify the authenticity of incoming connections.