Skip to content

Commit 10504ff

Browse files
Add log for LoginGraceTime on windows
1 parent 09cd7a1 commit 10504ff

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

apps/wolfsshd/wolfsshd.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1851,7 +1851,10 @@ static void* HandleConnection(void* arg)
18511851
graceTime = wolfSSHD_AuthGetGraceTime(conn->auth);
18521852
if (graceTime > 0) {
18531853
#ifdef WIN32
1854-
/* @TODO SetTimer(NULL, NULL, graceTime, alarmCatch); */
1854+
/* LoginGraceTime enforcement is not yet implemented on Windows.
1855+
* @TODO implement via CreateWaitableTimer or similar. */
1856+
wolfSSH_Log(WS_LOG_WARNING, "[SSHD] LoginGraceTime is set but "
1857+
"not enforced on this platform");
18551858
#else
18561859
signal(SIGALRM, alarmCatch);
18571860
alarm((unsigned int)graceTime);

0 commit comments

Comments
 (0)