wolfssh/apps/wolfsshd
John Safranek 87012b9a73 wolfsshd: hold failed userauth to a minimum time
DefaultUserAuth() holds a failed attempt to a per-user minimum, modeled
on OpenSSH sshd: 5 ms plus up to 4.29 ms from a keyed hash of the
username, doubled while the time already spent exceeds it, and skipped
past 5 s. It sleeps and rechecks until the minimum has passed. The
library itself stays non-blocking.

- wolfSSHD_AuthInit() draws the per-daemon key before any fork
- the hash is SHA-256, else SHA-512 or SHA-384; with none, the floor
- Windows times the wait with QueryPerformanceCounter
- tests for the delay range, the doubling, an early-waking sleep, and
  a failing request

Issue: F-11938
2026-11-12 16:31:35 -06:00
..
test wolfsshd: hold failed userauth to a minimum time 2026-11-12 16:31:35 -06:00
auth.c wolfsshd: hold failed userauth to a minimum time 2026-11-12 16:31:35 -06:00
auth.h wolfsshd: hold failed userauth to a minimum time 2026-11-12 16:31:35 -06:00
configuration.c
…
configuration.h
…
include.am
…
wolfsshd.c
…