mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Nomad was manually updated, so revert that to the version in master, remove it from vendor.json and add it to the ignore list. Update all packages that were in an unknown state to their latest master commits.
17 lines
387 B
Go
17 lines
387 B
Go
// +build !windows
|
|
|
|
package pq
|
|
|
|
import "os"
|
|
|
|
// sslCertificatePermissions checks the permissions on user-supplied certificate
|
|
// files. The key file should have very little access.
|
|
//
|
|
// libpq does not check key file permissions on Windows.
|
|
func sslCertificatePermissions(cert, key os.FileInfo) {
|
|
kmode := key.Mode()
|
|
if kmode != kmode&0600 {
|
|
panic(ErrSSLKeyHasWorldPermissions)
|
|
}
|
|
}
|