Use mcdsl/terminal for all password prompts
Replace direct golang.org/x/term calls with mcdsl/terminal.ReadPassword across mciasctl (6 sites), mciasgrpcctl (1 site), and mciasdb (1 site). Aligns with the new CLI security standard in engineering-standards.md. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
36
vendor/modernc.org/libc/libc_windows.go
generated
vendored
36
vendor/modernc.org/libc/libc_windows.go
generated
vendored
@@ -7,7 +7,6 @@ package libc // import "modernc.org/libc"
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"golang.org/x/sys/windows"
|
||||
"math"
|
||||
mbits "math/bits"
|
||||
"os"
|
||||
@@ -24,6 +23,7 @@ import (
|
||||
"unsafe"
|
||||
|
||||
"github.com/ncruces/go-strftime"
|
||||
"golang.org/x/sys/windows"
|
||||
"modernc.org/libc/errno"
|
||||
"modernc.org/libc/fcntl"
|
||||
"modernc.org/libc/limits"
|
||||
@@ -7702,17 +7702,6 @@ func X__mingw_strtod(t *TLS, s uintptr, p uintptr) float64 {
|
||||
return Xstrtod(t, s, p)
|
||||
}
|
||||
|
||||
func Xstrtod(t *TLS, s uintptr, p uintptr) float64 {
|
||||
if __ccgo_strace {
|
||||
trc("tls=%v s=%v p=%v, (%v:)", t, s, p, origin(2))
|
||||
}
|
||||
r0, _, err := procStrtod.Call(uintptr(s), uintptr(p))
|
||||
if err != windows.NOERROR {
|
||||
t.setErrno(err)
|
||||
}
|
||||
return math.Float64frombits(uint64(r0))
|
||||
}
|
||||
|
||||
// int vsnprintf(char *str, size_t size, const char *format, va_list ap);
|
||||
func X_vsnprintf(t *TLS, str uintptr, size types.Size_t, format, ap uintptr) int32 {
|
||||
if __ccgo_strace {
|
||||
@@ -7862,3 +7851,26 @@ func X_wstat32(tls *TLS, path, buffer uintptr) (r int32) {
|
||||
}
|
||||
return int32(r0)
|
||||
}
|
||||
|
||||
func Xbsearch(tls *TLS, key uintptr, base uintptr, nel Tsize_t, width Tsize_t, cmp uintptr) uintptr {
|
||||
if __ccgo_strace {
|
||||
trc("tls=%v key=%v base=%v nel=%v width=%v cmp=%v, (%v:)", tls, key, base, nel, width, cmp, origin(2))
|
||||
}
|
||||
var try uintptr
|
||||
var sign int32
|
||||
for nel > 0 {
|
||||
try = base + uintptr(width*(nel/2))
|
||||
sign = (*struct {
|
||||
f func(*TLS, uintptr, uintptr) int32
|
||||
})(unsafe.Pointer(&struct{ uintptr }{cmp})).f(tls, key, try)
|
||||
if sign < 0 {
|
||||
nel /= 2
|
||||
} else if sign > 0 {
|
||||
base = try + uintptr(width)
|
||||
nel -= nel/2 + 1
|
||||
} else {
|
||||
return try
|
||||
}
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user