Hanno Böck commited on 2025-04-29 12:52:07
Zeige 1 geänderte Dateien mit 6 Einfügungen und 1 Löschungen.
... | ... |
@@ -289,7 +289,12 @@ function filter_ssh_key($key) |
289 | 289 |
$fkey = $keyparts[0] . " " . $keyparts[1] . " " . $keyparts[2]; |
290 | 290 |
} |
291 | 291 |
|
292 |
- $sshcmd = proc_open("ssh-keygen -l -f -", [0 => ["pipe", "r"]], $pipes, null, null); |
|
292 |
+ $descr = [ |
|
293 |
+ 0 => ["pipe", "r"], |
|
294 |
+ 1 => ["pipe", "w"], |
|
295 |
+ 2 => ["pipe", "w"], |
|
296 |
+ ]; |
|
297 |
+ $sshcmd = proc_open("ssh-keygen -l -f -", $descr, $pipes, null, null); |
|
293 | 298 |
fwrite($pipes[0], $fkey); |
294 | 299 |
if (proc_close($sshcmd) !== 0) { |
295 | 300 |
system_failure("Ungültiger SSH-Key laut ssh-keygen!"); |
296 | 301 |