diff options
author | Antoine GIRARD <sapk@users.noreply.github.com> | 2017-10-21 06:05:58 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-10-21 12:05:58 +0800 |
commit | 2112eb87414fb0a08d77ad018ca306cfd15d5761 (patch) | |
tree | d563295dd29932ad8bdcbad416187519b10d83fc /vendor/github.com/lib/pq/ssl_go1.7.go | |
parent | d4c93995764ea9d951e6d5ac4f4524b6a41c6d6f (diff) | |
download | gitea-2112eb87414fb0a08d77ad018ca306cfd15d5761.tar.gz gitea-2112eb87414fb0a08d77ad018ca306cfd15d5761.zip |
Update vendor github.com/lib/pq (#2752)
Diffstat (limited to 'vendor/github.com/lib/pq/ssl_go1.7.go')
-rw-r--r-- | vendor/github.com/lib/pq/ssl_go1.7.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/vendor/github.com/lib/pq/ssl_go1.7.go b/vendor/github.com/lib/pq/ssl_go1.7.go new file mode 100644 index 0000000000..d7ba43b32a --- /dev/null +++ b/vendor/github.com/lib/pq/ssl_go1.7.go @@ -0,0 +1,14 @@ +// +build go1.7 + +package pq + +import "crypto/tls" + +// 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. +func sslRenegotiation(conf *tls.Config) { + conf.Renegotiation = tls.RenegotiateFreelyAsClient +} |