mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-28 08:14:24 +02:00
add ssh-pkcs11-helper.exe to build output, fix create_no_window for ssh-sk-helper.exe (#579)
This commit is contained in:
parent
5d6a3f5641
commit
b90820169b
@ -374,7 +374,7 @@ function Start-OpenSSHPackage
|
|||||||
|
|
||||||
$buildDir = Join-Path $repositoryRoot ("bin\" + $folderName + "\" + $Configuration)
|
$buildDir = Join-Path $repositoryRoot ("bin\" + $folderName + "\" + $Configuration)
|
||||||
$payload = "sshd.exe", "ssh.exe", "ssh-agent.exe", "ssh-add.exe", "sftp.exe"
|
$payload = "sshd.exe", "ssh.exe", "ssh-agent.exe", "ssh-add.exe", "sftp.exe"
|
||||||
$payload += "sftp-server.exe", "scp.exe", "ssh-shellhost.exe", "ssh-keygen.exe", "ssh-keyscan.exe", "ssh-sk-helper.exe"
|
$payload += "sftp-server.exe", "scp.exe", "ssh-shellhost.exe", "ssh-keygen.exe", "ssh-keyscan.exe", "ssh-sk-helper.exe", "ssh-pkcs11-helper.exe"
|
||||||
$payload += "sshd_config_default", "install-sshd.ps1", "uninstall-sshd.ps1"
|
$payload += "sshd_config_default", "install-sshd.ps1", "uninstall-sshd.ps1"
|
||||||
$payload += "FixHostFilePermissions.ps1", "FixUserFilePermissions.ps1", "OpenSSHUtils.psm1", "OpenSSHUtils.psd1"
|
$payload += "FixHostFilePermissions.ps1", "FixUserFilePermissions.ps1", "OpenSSHUtils.psm1", "OpenSSHUtils.psd1"
|
||||||
$payload += "openssh-events.man", "moduli", "LICENSE.txt", "NOTICE.txt"
|
$payload += "openssh-events.man", "moduli", "LICENSE.txt", "NOTICE.txt"
|
||||||
|
@ -1074,7 +1074,15 @@ spawn_child_internal(const char* cmd, char *const argv[], HANDLE in, HANDLE out,
|
|||||||
if (strstr(cmd, "sshd.exe")) {
|
if (strstr(cmd, "sshd.exe")) {
|
||||||
flags |= DETACHED_PROCESS;
|
flags |= DETACHED_PROCESS;
|
||||||
}
|
}
|
||||||
if (strstr(cmd, "ssh-pkcs11-helper.exe") || is_bash_test_env()) {
|
|
||||||
|
char* fidoDebug = NULL;
|
||||||
|
size_t len = 0;
|
||||||
|
_dupenv_s(&fidoDebug, &len, "FIDO_DEBUG");
|
||||||
|
|
||||||
|
if (is_bash_test_env() ||
|
||||||
|
(strstr(cmd, "ssh-pkcs11-helper.exe")) ||
|
||||||
|
((fidoDebug == NULL) && strstr(cmd, "ssh-sk-helper.exe"))) {
|
||||||
|
debug3("Creating process with CREATE_NO_WINDOW");
|
||||||
flags |= CREATE_NO_WINDOW;
|
flags |= CREATE_NO_WINDOW;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user