diff options
author | Frédéric Guillot <fred@miniflux.net> | 2019-06-08 18:00:10 -0700 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2019-06-08 18:00:10 -0700 |
commit | ec8fa56c95c90fb90925c723d7afd0d5fd642a76 (patch) | |
tree | 45b60eb64085a3f75ca9ee72095d510d68f7db10 /vendor/github.com/lib/pq/ssl.go | |
parent | 91508c50b54c9a0375856a17b2e774d42782b81d (diff) |
Update vendor folder
Diffstat (limited to 'vendor/github.com/lib/pq/ssl.go')
-rw-r--r-- | vendor/github.com/lib/pq/ssl.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/vendor/github.com/lib/pq/ssl.go b/vendor/github.com/lib/pq/ssl.go index e1a326a..d902084 100644 --- a/vendor/github.com/lib/pq/ssl.go +++ b/vendor/github.com/lib/pq/ssl.go @@ -58,7 +58,13 @@ func ssl(o values) (func(net.Conn) (net.Conn, error), error) { if err != nil { return nil, err } - sslRenegotiation(&tlsConf) + + // Accept renegotiation requests initiated by the backend. + // + // Renegotiation was deprecated then removed from PostgreSQL 9.5, but + // the default configuration of older versions has it enabled. Redshift + // also initiates renegotiations and cannot be reconfigured. + tlsConf.Renegotiation = tls.RenegotiateFreelyAsClient return func(conn net.Conn) (net.Conn, error) { client := tls.Client(conn, &tlsConf) |