upgrade to x/term instead of crypto/ssh/terminal

Simplify some of the password hashing logic. This requires a bump of irctest.
This commit is contained in:
Shivaram Lingamneni 2023-04-19 02:58:50 -04:00
parent eeec481b8d
commit 0d8dcbecf6
152 changed files with 1279 additions and 981 deletions

View file

@ -24,6 +24,21 @@ var hwCap uint
var hwCap2 uint
func readHWCAP() error {
// For Go 1.21+, get auxv from the Go runtime.
if a := getAuxv(); len(a) > 0 {
for len(a) >= 2 {
tag, val := a[0], uint(a[1])
a = a[2:]
switch tag {
case _AT_HWCAP:
hwCap = val
case _AT_HWCAP2:
hwCap2 = val
}
}
return nil
}
buf, err := ioutil.ReadFile(procAuxv)
if err != nil {
// e.g. on android /proc/self/auxv is not accessible, so silently