Make sure getpass() is available
It's not on Android for example.
This commit is contained in:
@@ -72,7 +72,7 @@ static shared_key_t* callback_shared(private_cmd_creds_t *this,
|
||||
id_match_t *match_me, id_match_t *match_other)
|
||||
{
|
||||
shared_key_t *shared;
|
||||
char *label, *pwd;
|
||||
char *label, *pwd = NULL;
|
||||
|
||||
if (type == this->prompted)
|
||||
{
|
||||
@@ -95,7 +95,9 @@ static shared_key_t* callback_shared(private_cmd_creds_t *this,
|
||||
default:
|
||||
return NULL;
|
||||
}
|
||||
#ifdef HAVE_GETPASS
|
||||
pwd = getpass(label);
|
||||
#endif
|
||||
if (!pwd || strlen(pwd) == 0)
|
||||
{
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user