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)
{
default:
return NULL;
}
+#ifdef HAVE_GETPASS
pwd = getpass(label);
+#endif
if (!pwd || strlen(pwd) == 0)
{
return NULL;
identification_t *me, identification_t *other,
id_match_t *match_me, id_match_t *match_other)
{
- char buf[64], *label, *secret;
+ char buf[64], *label, *secret = NULL;
switch (type)
{
return NULL;
}
snprintf(buf, sizeof(buf), "%s: ", label);
+#ifdef HAVE_GETPASS
secret = getpass(buf);
+#endif
if (secret)
{
if (match_me)
identification_t *me, identification_t *other,
id_match_t *match_me, id_match_t *match_other)
{
- char *pwd;
+ char *pwd = NULL;
if (type != SHARED_PRIVATE_KEY_PASS)
{
return NULL;
}
+#ifdef HAVE_GETPASS
pwd = getpass(prompt);
+#endif
if (!pwd || strlen(pwd) == 0)
{
return NULL;