mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-31 01:35:11 +02:00
Added askpass utility to support change around SSH_ASKPASS logic. Since prompt is now passed as a commandline parameter to SSH_ASKPASS, "cmd /c echo" based logic no longer works for automated passing of password.
14 lines
247 B
C++
14 lines
247 B
C++
// askpass_util.cpp : Defines the entry point for the console application.
|
|
//
|
|
|
|
#include <Windows.h>
|
|
#include <stdio.h>
|
|
|
|
int main()
|
|
{
|
|
//read from environment variable, spit it out on stdout
|
|
printf("%s", getenv("ASKPASS_PASSWORD"));
|
|
return 0;
|
|
}
|
|
|