From 2e9e34ef775622424b86e4f69019c9343d4565cf Mon Sep 17 00:00:00 2001 From: Ben Kibbey Date: Sun, 31 Oct 2010 15:56:37 -0400 Subject: [PATCH] pwmc: reset the pinentry title after connecting. Fixes showing the knownhosts confirmation string when opening a file. --- src/pwmc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pwmc.c b/src/pwmc.c index dbf1a90e..fb371b7a 100644 --- a/src/pwmc.c +++ b/src/pwmc.c @@ -270,7 +270,7 @@ static gpg_error_t knownhost_cb(void *data, const char *host, const char *key, size_t len) { gpg_error_t rc; - char *buf = pwmd_strdup_printf(N_("Password Manager Daemon: %s\n\nWhile attempting an SSH connection to %s, there was a problem verifying it's hostkey against the known and trusted hosts file because it's hostkey was not found.\n\nWould you like to treat this connection as trusted for this and future connections by adding %s's hostkey to the known hosts file?"), (char *)data, host, host); + char *buf = pwmd_strdup_printf(N_("Password Manager Daemon: %s\n\nWhile attempting an SSH connection to %s there was a problem verifying it's hostkey against the known and trusted hosts file because it's hostkey was not found.\n\nWould you like to treat this connection as trusted for this and future connections by adding %s's hostkey to the known hosts file?"), (char *)data, host, host); rc = pwmd_setopt(pwm, PWMD_OPTION_PINENTRY_TITLE, buf); pwmd_free(buf); @@ -683,6 +683,7 @@ int main(int argc, char *argv[]) } #endif + error = pwmd_setopt(pwm, PWMD_OPTION_PINENTRY_TITLE, NULL); error = pwmd_socket_type(pwm, &s); if (error) -- 2.11.4.GIT