Manoj Ampalam d9773976a7
fix testbreak with SSH_ASKPASS change (#394)
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.
2019-09-13 14:13:42 -07:00

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;
}