mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 21:35:52 +00:00
tls: define wrapper type
This commit is contained in:
parent
9a2f04ea73
commit
6b2390833d
@ -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…
x
Reference in New Issue
Block a user