File tree Expand file tree Collapse file tree 2 files changed +15
-8
lines changed
Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 22
33package pqutil
44
5- func sslKeyPermissions (string ) error { return nil }
5+ import "errors"
6+
7+ var (
8+ ErrSSLKeyUnknownOwnership = errors .New ("unused" )
9+ ErrSSLKeyHasWorldPermissions = errors .New ("unused" )
10+ )
11+
12+ func SSLKeyPermissions (sslkey string ) error { return nil }
Original file line number Diff line number Diff line change @@ -7,14 +7,14 @@ import (
77 "syscall"
88)
99
10- // Perform Windows user name lookup identically to libpq.
11- //
12- // The PostgreSQL code makes use of the legacy Win32 function GetUserName, and
13- // that function has not been imported into stock Go. GetUserNameEx is available
14- // though, the difference being that a wider range of names are available. To
15- // get the output to be the same as GetUserName, only the base (or last)
16- // component of the result is returned.
1710func User () (string , error ) {
11+ // Perform Windows user name lookup identically to libpq.
12+ //
13+ // The PostgreSQL code makes use of the legacy Win32 function GetUserName,
14+ // and that function has not been imported into stock Go. GetUserNameEx is
15+ // available though, the difference being that a wider range of names are
16+ // available. To get the output to be the same as GetUserName, only the
17+ // base (or last) component of the result is returned.
1818 var (
1919 name = make ([]uint16 , 128 )
2020 pwnameSz = uint32 (len (name )) - 1
You can’t perform that action at this time.
0 commit comments