Commit Graph

6 Commits (10d97e151fbab0c8d06be441cdc8c2e121bca65d)

Author SHA1 Message Date
Yosuke Shimizu 8d6e2b3aba wolfsshd: complete the Windows user profile fallback
- _GetHomeDirectory loads the user's profile when WOLFSSHD_AUTH's new
  profile member is NULL, setting PROFILEINFO.dwSize first and keeping
  the returned hProfile there.
- _GetProfileDirectory reads the home directory with
  GetUserProfileDirectoryW, in place of SHGetKnownFolderPath and the
  %USERPROFILE% expansion. CheckPublicKeyWIN calls it directly, so a
  caller that has not authenticated the user builds no profile.
- wolfSSHD_AuthCloseToken unloads the profile before closing the token,
  calling RegCloseKey when the unload fails.
- The Windows shell cleanup calls RevertToSelf() before closing the auth
  token rather than after.
- windows-sftp.yml gains a no_profile job that covers an exec session,
  two overlapping sessions, and SFTP for users created with net user
  alone; it skips the earlier SFTP step so its exec session connects
  first.
- Both Windows workflows log testuser on once so Windows builds a real
  profile, in place of writing the home directory and ProfileList entry
  by hand, and the recursive icacls grants on it are gone.

Issue: F-13326
2026-09-09 22:06:06 -07:00
JacobBarthelmeh 61fa771aa6 remove two UTF-8 characters and NuGet restore from test yml 2026-09-05 01:32:02 -07:00
JacobBarthelmeh 161c5ae24f expand CI test for non-fpki build, fix check for error state with CertEnumCertificatesInStore, add extended key usage type check if present, fix for EKU checks with X509 use and add test case 2026-09-05 01:32:02 -07:00
JacobBarthelmeh 0be0fae009 use wolfSSH_ prefix on wolfSSH specific config's HostKeyStore, HostKeyStoreSubject, HostKeyStoreFlags 2026-09-05 01:32:02 -07:00
JacobBarthelmeh 4baba585d5 fix for flags handling, ocsp case, macro guards, unused variable, changed default from MY to required to be set
enable SHA1 with windows cert store test case

expand test cases, adjust to authorized key file, minor dead code adjustments

add more documentation, refactor duplicate code sections, clean up test cases, more adjustments to logging spamming protections
2026-09-05 01:32:02 -07:00
JacobBarthelmeh 13c2adf34b add Windows cert store use with signing and add example arguments
add Windows cert store test case

make windows cert feature default disabled and simplify macro guard

additional unit tests, advertise x509 and pubkey, use CN to match username, build check for WOLFSSL_SYS_CA_CERTS, fix for CM ref count

additional build test, uniform enum name, fail on unkown cert store ecc curve, tie in of loading whole cert store for sys CA's
2026-09-05 01:32:02 -07:00