ssh: allow empty keyb-interactive responses - fixes #5619

This commit is contained in:
Eugene Pankov 2022-01-27 21:00:25 +01:00
parent f6eaff355b
commit b469dd603b
No known key found for this signature in database
GPG key ID: 5896FCBBDD1CF4F4

View file

@ -40,7 +40,9 @@ export class KeyboardInteractivePrompt {
public instruction: string,
public prompts: Prompt[],
private callback: (_: string[]) => void,
) { }
) {
this.responses = new Array(this.prompts.length).fill('')
}
respond (): void {
this.callback(this.responses)