int
main(int argc, char **argv)
{
	char *message;
	int result;

	gtk_init(&argc, &argv);

	if (argc > 1) {
		message = g_strjoinv(" ", argv + 1);
	} else {
		message = g_strdup("Enter your OpenSSH passphrase:");
	}

	setvbuf(stdout, 0, _IONBF, 0);
	result = passphrase_dialog(message);
	g_free(message);

	return (result);
}
Ejemplo n.º 2
0
int
main(int argc, char **argv)
{
    char *message;
    int result;

    gtk_init(&argc, &argv);

    gtk_window_set_default_icon_from_file ("/usr/share/pixmaps/ssh-askpass-gnome.png", NULL);

    if (argc > 1) {
        message = g_strjoinv(" ", argv + 1);
    } else {
        message = g_strdup("Enter your OpenSSH passphrase:");
    }

    setvbuf(stdout, 0, _IONBF, 0);
    result = passphrase_dialog(message);
    g_free(message);

    return (result);
}