Browse Source

tls: define wrapper type

pull/927/head
Armon Dadgar 10 years ago
parent
commit
6b2390833d
  1. 4
      tlsutil/config.go

4
tlsutil/config.go

@ -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.

Loading…
Cancel
Save