Fixed issue: Wrong log message when key type is not allowed (https://github.com/PowerShell/Win32-OpenSSH/issues/472)

This commit is contained in:
Manoj Ampalam 2017-01-14 23:25:12 -08:00
parent 039f2eca7a
commit efa7d82bbd
1 changed files with 1 additions and 1 deletions
contrib/win32/win32compat/ssh-agent

View File

@ -318,7 +318,7 @@ int process_pubkeyauth_request(struct sshbuf* request, struct sshbuf* response,
if (SHGetKnownFolderPath(&FOLDERID_Profile, 0, token, &wuser_home) != S_OK ||
pubkey_allowed(key, wuser, wuser_home) != 1) {
debug("given public key is not mapped to user %ls (profile:%ls)", wuser, wuser_home);
debug("unable to verify public key for user %ls (profile:%ls)", wuser, wuser_home);
goto done;
}